* Takes care of any events from the core game engine. * @param action Pointer to an action. */
| 541 | * @param action Pointer to an action. |
| 542 | */ |
| 543 | void 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 | } |
nothing calls this directly
no test coverage detected