* Sets a function to be called every time the surface is mouse released. * @param handler Action handler. * @param button Mouse button to check for. Set to 0 for any button. */
| 442 | * @param button Mouse button to check for. Set to 0 for any button. |
| 443 | */ |
| 444 | void InteractiveSurface::onMouseRelease(ActionHandler handler, Uint8 button) |
| 445 | { |
| 446 | if (handler != 0) |
| 447 | { |
| 448 | _release[button] = handler; |
| 449 | } |
| 450 | else |
| 451 | { |
| 452 | _release.erase(button); |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * Sets a function to be called every time the mouse moves into the surface. |
no outgoing calls
no test coverage detected