| 7009 | } |
| 7010 | |
| 7011 | bool GameController::binaryToggle(SDL_GameControllerButton binding) const |
| 7012 | { |
| 7013 | if ( binding <= SDL_GameControllerButton::SDL_CONTROLLER_BUTTON_INVALID || binding >= SDL_GameControllerButton::SDL_CONTROLLER_BUTTON_MAX ) |
| 7014 | { |
| 7015 | return false; |
| 7016 | } |
| 7017 | return (buttons[binding].binary && !buttons[binding].consumed); |
| 7018 | } |
| 7019 | |
| 7020 | bool GameController::binaryReleaseToggle(SDL_GameControllerButton binding) const |
| 7021 | { |
no outgoing calls
no test coverage detected