MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / onMouseRelease

Method onMouseRelease

src/Engine/InteractiveSurface.cpp:444–454  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

442 * @param button Mouse button to check for. Set to 0 for any button.
443 */
444void 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.

Callers 9

buildUiMethod · 0.80
buildUiMethod · 0.80
OptionsAudioStateMethod · 0.80
BuildNewBaseStateMethod · 0.80
GeoscapeStateMethod · 0.80
addRowMethod · 0.80
onLeftArrowReleaseMethod · 0.80
onRightArrowReleaseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected