MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / IsControllerButtonPressed

Function IsControllerButtonPressed

Source/controls/controller.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71bool IsControllerButtonPressed(ControllerButton button)
72{
73#ifndef USE_SDL1
74 if (GameController::IsPressedOnAnyController(button))
75 return true;
76#endif
77#if HAS_KBCTRL == 1
78 if (!demo::IsRunning() && IsKbCtrlButtonPressed(button))
79 return true;
80#endif
81 return Joystick::IsPressedOnAnyJoystick(button);
82}
83
84bool IsControllerButtonComboPressed(ControllerButtonCombo combo)
85{

Callers 4

FindActionMethod · 0.85
IsPressedForMovementFunction · 0.85
UiSettingsMenuFunction · 0.85

Calls 2

IsKbCtrlButtonPressedFunction · 0.85
IsRunningFunction · 0.50

Tested by

no test coverage detected