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

Method lAxisXPressed

engine/src/input.cpp:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149bool GamePad::lAxisXPressed(GP_AxisDirection direction)
150{
151 return direction == GPA_LEFT ? (lAxisX_state[input_state] < 0 &&
152 lAxisX_state[input_state ^ 1] >= 0)
153 : (lAxisX_state[input_state] > 0 &&
154 lAxisX_state[input_state ^ 1] <= 0);
155}
156
157bool GamePad::lAxisXReleased(GP_AxisDirection direction)
158{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected