MCPcopy Create free account
hub / github.com/clementgallet/libTAS / GetScanFromKey1

Function GetScanFromKey1

src/library/inputs/sdlkeyboardlayout.cpp:328–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328unsigned char GetScanFromKey1(SDL1::SDLKey key){
329 for (int i=0; i<static_cast<int>(SDL1_NUM_SCANCODES); i++)
330 if (SDL1_default_keymap[i] == key)
331 return static_cast<unsigned char>(i);
332 return 0;
333}
334
335/* Override */ SDL_Keycode SDL_GetKeyFromScancode(SDL_Scancode scancode)
336{

Callers 1

xkeysymToSDL1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected