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

Method GamePad

engine/src/input.cpp:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78bool Mouse::buttonUp() { return !bButtons_state[input_state][0]; }
79
80GamePad::GamePad()
81{
82 numButtons = NUM_BUTTONS;
83 std::memset(bButtons, 0, sizeof(bButtons));
84 std::memset(bButtons_state, 0, sizeof(bButtons_state));
85 std::memset(bHat, 0, sizeof(bHat));
86 std::memset(bHat_state, 0, sizeof(bHat_state));
87 lAxisX = 0;
88 lAxisY = 0;
89 lAxisZ = 0;
90 lAxisRz = 0;
91 lAxisX_state[0] = lAxisX_state[1] = 0;
92 lAxisY_state[0] = lAxisY_state[1] = 0;
93 lAxisZ_state[0] = lAxisZ_state[1] = 0;
94 lAxisRz_state[0] = lAxisRz_state[1] = 0;
95 input_state = 0;
96}
97
98GamePad::~GamePad() {}
99

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected