Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_events.c @ 5223:572a73d71b5f
Sheena pointed out that "scancode" and "keysym" are single words and shouldn't be camel-cased.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Feb 2011 09:37:11 -0800 |
parents | 164f20ba08eb |
children | c1a92e61907d |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_events.c Mon Feb 07 09:23:01 2011 -0800 +++ b/src/video/directfb/SDL_DirectFB_events.c Mon Feb 07 09:37:11 2011 -0800 @@ -61,15 +61,15 @@ }; /* The translation tables from a DirectFB keycode to a SDL keysym */ -static SDL_ScanCode oskeymap[256]; +static SDL_Scancode oskeymap[256]; -static SDL_KeySym *DirectFB_TranslateKey(_THIS, DFBWindowEvent * evt, - SDL_KeySym * keysym); -static SDL_KeySym *DirectFB_TranslateKeyInputEvent(_THIS, DFBInputEvent * evt, - SDL_KeySym * keysym); +static SDL_Keysym *DirectFB_TranslateKey(_THIS, DFBWindowEvent * evt, + SDL_Keysym * keysym); +static SDL_Keysym *DirectFB_TranslateKeyInputEvent(_THIS, DFBInputEvent * evt, + SDL_Keysym * keysym); -static void DirectFB_InitOSKeymap(_THIS, SDL_ScanCode * keypmap, int numkeys); +static void DirectFB_InitOSKeymap(_THIS, SDL_Scancode * keypmap, int numkeys); static int DirectFB_TranslateButton(DFBInputDeviceButtonIdentifier button); static void UnicodeToUtf8( Uint16 w , char *utf8buf) @@ -176,7 +176,7 @@ { SDL_DFB_DEVICEDATA(_this); SDL_DFB_WINDOWDATA(sdlwin); - SDL_KeySym keysym; + SDL_Keysym keysym; char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; if (evt->clazz == DFEC_WINDOW) { @@ -308,7 +308,7 @@ ProcessInputEvent(_THIS, DFBInputEvent * ievt) { SDL_DFB_DEVICEDATA(_this); - SDL_KeySym keysym; + SDL_Keysym keysym; int kbd_idx; char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; @@ -448,7 +448,7 @@ } void -DirectFB_InitOSKeymap(_THIS, SDL_ScanCode * keymap, int numkeys) +DirectFB_InitOSKeymap(_THIS, SDL_Scancode * keymap, int numkeys) { int i; @@ -575,8 +575,8 @@ } -static SDL_KeySym * -DirectFB_TranslateKey(_THIS, DFBWindowEvent * evt, SDL_KeySym * keysym) +static SDL_Keysym * +DirectFB_TranslateKey(_THIS, DFBWindowEvent * evt, SDL_Keysym * keysym) { SDL_DFB_DEVICEDATA(_this); int kbd_idx = 0; /* Window events lag the device source KbdIndex(_this, evt->device_id); */ @@ -605,9 +605,9 @@ return keysym; } -static SDL_KeySym * +static SDL_Keysym * DirectFB_TranslateKeyInputEvent(_THIS, DFBInputEvent * evt, - SDL_KeySym * keysym) + SDL_Keysym * keysym) { SDL_DFB_DEVICEDATA(_this); int kbd_idx = KbdIndex(_this, evt->device_id);