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

Method lAxisYReleased

engine/src/input.cpp:173–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173bool GamePad::lAxisYReleased(GP_AxisDirection direction)
174{
175 return direction == GPA_LEFT ? (lAxisY_state[input_state] >= 0 &&
176 lAxisY_state[input_state ^ 1] < 0)
177 : (lAxisY_state[input_state] <= 0 &&
178 lAxisY_state[input_state ^ 1] > 0);
179}
180
181float GamePad::fAxisX() { return (static_cast<float>(lAxisX) / 32767.0f); }
182

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected