* Handles mouse-wheeling. * @param action Pointer to an action. */
| 104 | * @param action Pointer to an action. |
| 105 | */ |
| 106 | void MiniMapState::handle(Action *action) |
| 107 | { |
| 108 | State::handle(action); |
| 109 | if (action->getDetails()->type == SDL_MOUSEBUTTONDOWN) |
| 110 | { |
| 111 | if (action->getDetails()->button.button == SDL_BUTTON_WHEELUP) |
| 112 | { |
| 113 | btnLevelUpClick(action); |
| 114 | } |
| 115 | else if (action->getDetails()->button.button == SDL_BUTTON_WHEELDOWN) |
| 116 | { |
| 117 | btnLevelDownClick(action); |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Returns to the previous screen. |