MCPcopy Create free account
hub / github.com/TurningWheel/Barony / binaryToggle

Method binaryToggle

src/player.cpp:7011–7018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7009}
7010
7011bool 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
7020bool GameController::binaryReleaseToggle(SDL_GameControllerButton binding) const
7021{

Calls

no outgoing calls

Tested by

no test coverage detected