* Sets a function to be called every time a key is released when the surface is focused. * @param handler Action handler. * @param key Keyboard button to check for (note: ignores key modifiers). Set to 0 for any key. */
| 503 | * @param key Keyboard button to check for (note: ignores key modifiers). Set to 0 for any key. |
| 504 | */ |
| 505 | void InteractiveSurface::onKeyboardRelease(ActionHandler handler, SDLKey key) |
| 506 | { |
| 507 | if (handler != 0) |
| 508 | { |
| 509 | _keyRelease[key] = handler; |
| 510 | } |
| 511 | else |
| 512 | { |
| 513 | _keyRelease.erase(key); |
| 514 | } |
| 515 | } |
| 516 | |
| 517 | /** |
| 518 | * Sets a flag for this button to say "i'm a member of a textList" to true. |
no outgoing calls
no test coverage detected