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

Method lAxisYPressed

engine/src/input.cpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165bool GamePad::lAxisYPressed(GP_AxisDirection direction)
166{
167 return direction == GPA_LEFT ? (lAxisY_state[input_state] < 0 &&
168 lAxisY_state[input_state ^ 1] >= 0)
169 : (lAxisY_state[input_state] > 0 &&
170 lAxisY_state[input_state ^ 1] <= 0);
171}
172
173bool GamePad::lAxisYReleased(GP_AxisDirection direction)
174{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected