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

Function joypad_get

src/lua-engine.cpp:2850–2853  ·  view source on GitHub ↗

joypad.get(which) returns a table of every game button, true meaning currently-held and false meaning not-currently-held (as of last frame boundary) this WILL read input from a currently-playing movie

Source from the content-addressed store, hash-verified

2848// (as of last frame boundary)
2849// this WILL read input from a currently-playing movie
2850static int joypad_get(lua_State *L)
2851{
2852 return joy_get_internal(L, true, true);
2853}
2854// joypad.getdown(which)
2855// returns a table of every game button that is currently held
2856static int joypad_getdown(lua_State *L)

Callers

nothing calls this directly

Calls 1

joy_get_internalFunction · 0.85

Tested by

no test coverage detected