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

Method mouseClick

src/Interface/ArrowButton.cpp:366–373  ·  view source on GitHub ↗

* Scrolls the associated list to top or bottom. * @param action Pointer to an action. * @param state State that the action handlers belong to. */

Source from the content-addressed store, hash-verified

364 * @param state State that the action handlers belong to.
365 */
366void ArrowButton::mouseClick(Action *action, State *state)
367{
368 ImageButton::mouseClick(action, state);
369 if (_list != 0 && SDL_BUTTON_RIGHT == action->getDetails()->button.button) {
370 if (_shape == ARROW_BIG_UP) _list->scrollUp(true);
371 else if (_shape == ARROW_BIG_DOWN) _list->scrollDown(true);
372 }
373}
374
375}

Callers

nothing calls this directly

Calls 3

getDetailsMethod · 0.80
scrollUpMethod · 0.80
scrollDownMethod · 0.80

Tested by

no test coverage detected