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

Function IsControllerButtonPressed

SourceX/controls/controller.cpp:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool IsControllerButtonPressed(ControllerButton button)
42{
43 bool result = false;
44#ifndef USE_SDL1
45 result = result || IsGameControllerButtonPressed(button);
46#endif
47#if HAS_KBCTRL == 1
48 result = result || IsKbCtrlButtonPressed(button);
49#endif
50 result = result || IsJoystickButtonPressed(button);
51 return result;
52}
53
54void InitController()
55{

Callers 8

MovementFunction · 0.85
ProcessControllerMotionFunction · 0.85
GetGameActionFunction · 0.85
GetMoveDirectionFunction · 0.85
IsTopActiveFunction · 0.85
IsRightActiveFunction · 0.85
IsBottomActiveFunction · 0.85
IsLeftActiveFunction · 0.85

Calls 3

IsKbCtrlButtonPressedFunction · 0.85
IsJoystickButtonPressedFunction · 0.85

Tested by

no test coverage detected