src/events/SDL_keyboard_c.h
branchSDL-1.3
changeset 1674 7688a73b25b1
parent 1673 624e1412fbba
child 1720 a1ebb17f9c52
     1.1 --- a/src/events/SDL_keyboard_c.h	Sat Jun 10 09:11:59 2006 +0000
     1.2 +++ b/src/events/SDL_keyboard_c.h	Sun Jun 11 05:27:10 2006 +0000
     1.3 @@ -31,7 +31,9 @@
     1.4      /* Free the keyboard when it's time */
     1.5      void (*FreeKeyboard) (SDL_Keyboard * keyboard);
     1.6  
     1.7 -    SDLMod modstate;
     1.8 +    /* Data common to all keyboards */
     1.9 +    SDL_WindowID focus;
    1.10 +    Uint16 modstate;
    1.11      Uint8 keystate[SDLK_LAST];
    1.12  
    1.13      struct
    1.14 @@ -42,11 +44,16 @@
    1.15          Uint32 timestamp;       /* the time the first keydown event occurred */
    1.16  
    1.17          SDL_Event evt;          /* the event we are supposed to repeat */
    1.18 -    } keyrepeat;
    1.19 +    } repeat;
    1.20  
    1.21      void *driverdata;
    1.22  };
    1.23  
    1.24 +/* Used by the OS keyboard code to detect whether or not to do UNICODE */
    1.25 +#ifndef DEFAULT_UNICODE_TRANSLATION
    1.26 +#define DEFAULT_UNICODE_TRANSLATION 0   /* Default off because of overhead */
    1.27 +#endif
    1.28 +extern int SDL_TranslateUNICODE;
    1.29  
    1.30  /* Initialize the keyboard subsystem */
    1.31  extern int SDL_KeyboardInit(void);
    1.32 @@ -66,8 +73,11 @@
    1.33  extern void SDL_ResetKeyboard(int index);
    1.34  
    1.35  /* Send a keyboard event for a keyboard at an index */
    1.36 -extern int SDL_SendKeyboardKey(int index, Uint8 state,
    1.37 -                               const SDL_keysym * keysym);
    1.38 +extern int SDL_SendKeyboardKey(int index, SDL_WindowID windowID, Uint8 state,
    1.39 +                               SDL_keysym * keysym);
    1.40 +
    1.41 +/* Used by the event loop to queue pending keyboard repeat events */
    1.42 +extern void SDL_CheckKeyRepeat(void);
    1.43  
    1.44  /* Shutdown the keyboard subsystem */
    1.45  extern void SDL_KeyboardQuit(void);