Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Sheena pointed out that "scancode" and "keysym" are single words and …

…shouldn't be camel-cased.
  • Loading branch information
slouken committed Feb 7, 2011
1 parent c662582 commit d86cf5672519b6a0cf31d775d6598ed5b72d9a60

File 5 of 25 in d86cf56

@@ -562,7 +562,7 @@ void
SDL_ResetKeyboard(void)
{
SDL_Keyboard *keyboard = &SDL_keyboard;
SDL_ScanCode scancode;
SDL_Scancode scancode;

for (scancode = 0; scancode < SDL_NUM_SCANCODES; ++scancode) {
if (keyboard->keystate[scancode] == SDL_PRESSED) {
@@ -590,7 +590,7 @@ SDL_SetKeymap(int start, SDLKey * keys, int length)
}

void
SDL_SetScancodeName(SDL_ScanCode scancode, const char *name)
SDL_SetScancodeName(SDL_Scancode scancode, const char *name)
{
SDL_scancode_names[scancode] = name;
}
@@ -638,7 +638,7 @@ SDL_SetKeyboardFocus(SDL_Window * window)
}

int
SDL_SendKeyboardKey(Uint8 state, SDL_ScanCode scancode)
SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode)
{
SDL_Keyboard *keyboard = &SDL_keyboard;
int posted;
@@ -849,18 +849,18 @@ SDL_SetModState(SDLMod modstate)
}

SDLKey
SDL_GetKeyFromScancode(SDL_ScanCode scancode)
SDL_GetKeyFromScancode(SDL_Scancode scancode)
{
SDL_Keyboard *keyboard = &SDL_keyboard;

return keyboard->keymap[scancode];
}

SDL_ScanCode
SDL_Scancode
SDL_GetScancodeFromKey(SDLKey key)
{
SDL_Keyboard *keyboard = &SDL_keyboard;
SDL_ScanCode scancode;
SDL_Scancode scancode;

for (scancode = SDL_SCANCODE_UNKNOWN; scancode < SDL_NUM_SCANCODES;
++scancode) {
@@ -872,7 +872,7 @@ SDL_GetScancodeFromKey(SDLKey key)
}

const char *
SDL_GetScancodeName(SDL_ScanCode scancode)
SDL_GetScancodeName(SDL_Scancode scancode)
{
const char *name = SDL_scancode_names[scancode];

@@ -890,7 +890,7 @@ SDL_GetKeyName(SDLKey key)

if (key & SDLK_SCANCODE_MASK) {
return
SDL_GetScancodeName((SDL_ScanCode) (key & ~SDLK_SCANCODE_MASK));
SDL_GetScancodeName((SDL_Scancode) (key & ~SDLK_SCANCODE_MASK));
}

switch (key) {

0 comments on commit d86cf56

Please sign in to comment.