MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / hatPressed

Method hatPressed

engine/src/input.cpp:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125bool GamePad::buttonUp(int button) { return !bButtons_state[input_state][button]; }
126
127bool GamePad::hatPressed(GP_HatDirection direction)
128{
129 return (bHat_state[input_state][direction]) &&
130 !(bHat_state[input_state ^ 1][direction]);
131}
132
133bool GamePad::hatReleased(GP_HatDirection direction)
134{

Callers 1

I_updateGameInputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected