| 69 | } |
| 70 | |
| 71 | bool 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 | |
| 84 | bool IsControllerButtonComboPressed(ControllerButtonCombo combo) |
| 85 | { |
no test coverage detected