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

Function GetEmuCommandById

src/input.cpp:1419–1427  ·  view source on GitHub ↗

* Function to get command info entry by command number **/

Source from the content-addressed store, hash-verified

1417* Function to get command info entry by command number
1418**/
1419EMUCMDTABLE* GetEmuCommandById(int cmd)
1420{
1421 for (size_t i = 0; i<NUM_EMU_CMDS; ++i)
1422 {
1423 if (FCEUI_CommandTable[i].cmd == cmd)
1424 return &FCEUI_CommandTable[i];
1425 }
1426 return NULL;
1427}

Callers 1

AskForHotkeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected