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

Function I_zeroGameInput

engine/src/game.cpp:261–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void I_zeroGameInput()
262{
263 std::memset(input.gamepad.bButtons_state[0], 0,
264 sizeof(input.gamepad.bButtons));
265 std::memset(input.keyboard.bKeys_state[0], 0, sizeof(input.keyboard.bKeys));
266 std::memset(input.gamepad.bButtons_state[1], 0,
267 sizeof(input.gamepad.bButtons));
268 std::memset(input.keyboard.bKeys_state[1], 0, sizeof(input.keyboard.bKeys));
269 std::memset(input.gamepad.bHat_state[0], 0, sizeof(input.gamepad.bHat));
270 std::memset(input.gamepad.bHat_state[1], 0, sizeof(input.gamepad.bHat));
271}
272
273bool G_playEvent(std::string name, bool loop)
274{

Callers 3

G_initializeEventsFunction · 0.85
P_pauseFunction · 0.85
G_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected