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

Method handle

src/Battlescape/InventoryState.cpp:543–561  ·  view source on GitHub ↗

* Takes care of any events from the core game engine. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

541 * @param action Pointer to an action.
542 */
543void InventoryState::handle(Action *action)
544{
545 State::handle(action);
546
547
548#ifndef __MORPHOS__
549 if (action->getDetails()->type == SDL_MOUSEBUTTONDOWN)
550 {
551 if (action->getDetails()->button.button == SDL_BUTTON_X1)
552 {
553 btnNextClick(action);
554 }
555 else if (action->getDetails()->button.button == SDL_BUTTON_X2)
556 {
557 btnPrevClick(action);
558 }
559 }
560#endif
561}
562
563}

Callers

nothing calls this directly

Calls 1

getDetailsMethod · 0.80

Tested by

no test coverage detected