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

Function GetKeyPressed

src/drivers/win/input.cpp:1079–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079static int GetKeyPressed()
1080{
1081 int key = 0;
1082 int i;
1083
1084 unsigned int keys_nr = *GetKeyboard_nr();
1085
1086 for (i = 0; i < 256 && !key; ++i)
1087 {
1088 if (IsNewpressed(i))
1089 {
1090 key = i;
1091 }
1092 }
1093
1094 return key;
1095}
1096
1097static int NothingPressed()
1098{

Callers 1

DWBCallBFunction · 0.85

Calls 2

GetKeyboard_nrFunction · 0.85
IsNewpressedFunction · 0.85

Tested by

no test coverage detected