MCPcopy Create free account
hub / github.com/TASEmulators/fceux / joypad_getdown

Function joypad_getdown

src/lua-engine.cpp:2856–2859  ·  view source on GitHub ↗

joypad.getdown(which) returns a table of every game button that is currently held

Source from the content-addressed store, hash-verified

2854// joypad.getdown(which)
2855// returns a table of every game button that is currently held
2856static int joypad_getdown(lua_State *L)
2857{
2858 return joy_get_internal(L, false, true);
2859}
2860// joypad.getup(which)
2861// returns a table of every game button that is not currently held
2862static int joypad_getup(lua_State *L)

Callers

nothing calls this directly

Calls 1

joy_get_internalFunction · 0.85

Tested by

no test coverage detected