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

Method onKeyboardRelease

src/Engine/InteractiveSurface.cpp:505–515  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

503 * @param key Keyboard button to check for (note: ignores key modifiers). Set to 0 for any key.
504 */
505void 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.

Callers 3

BuildNewBaseStateMethod · 0.80
GeoscapeStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected