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

Method lAxisXReleased

engine/src/input.cpp:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157bool GamePad::lAxisXReleased(GP_AxisDirection direction)
158{
159 return direction == GPA_LEFT ? (lAxisX_state[input_state] >= 0 &&
160 lAxisX_state[input_state ^ 1] < 0)
161 : (lAxisX_state[input_state] <= 0 &&
162 lAxisX_state[input_state ^ 1] > 0);
163}
164
165bool GamePad::lAxisYPressed(GP_AxisDirection direction)
166{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected