include/SDL_keyboard.h
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1507 1ff64ad478b2
child 1668 4da1ee79c9af
     1.1 --- a/include/SDL_keyboard.h	Sun May 21 17:27:13 2006 +0000
     1.2 +++ b/include/SDL_keyboard.h	Sun May 28 13:04:16 2006 +0000
     1.3 @@ -20,7 +20,11 @@
     1.4      slouken@libsdl.org
     1.5  */
     1.6  
     1.7 -/* Include file for SDL keyboard event handling */
     1.8 +/**
     1.9 + * \file SDL_keyboard.h
    1.10 + *
    1.11 + * Include file for SDL keyboard event handling
    1.12 + */
    1.13  
    1.14  #ifndef _SDL_keyboard_h
    1.15  #define _SDL_keyboard_h
    1.16 @@ -32,7 +36,9 @@
    1.17  #include "begin_code.h"
    1.18  /* Set up for C function definitions, even when using C++ */
    1.19  #ifdef __cplusplus
    1.20 +/* *INDENT-OFF* */
    1.21  extern "C" {
    1.22 +/* *INDENT-ON* */
    1.23  #endif
    1.24  
    1.25  /* Keysym structure
    1.26 @@ -51,11 +57,12 @@
    1.27  		An international character..
    1.28  	}
    1.29   */
    1.30 -typedef struct SDL_keysym {
    1.31 -	Uint8 scancode;			/* hardware specific scancode */
    1.32 -	SDLKey sym;			/* SDL virtual keysym */
    1.33 -	SDLMod mod;			/* current key modifiers */
    1.34 -	Uint16 unicode;			/* translated character */
    1.35 +typedef struct SDL_keysym
    1.36 +{
    1.37 +    Uint8 scancode;             /* hardware specific scancode */
    1.38 +    SDLKey sym;                 /* SDL virtual keysym */
    1.39 +    SDLMod mod;                 /* current key modifiers */
    1.40 +    Uint16 unicode;             /* translated character */
    1.41  } SDL_keysym;
    1.42  
    1.43  /* This is the mask which refers to all hotkey bindings */
    1.44 @@ -70,7 +77,7 @@
    1.45   * If 'enable' is -1, the translation state is not changed.
    1.46   * It returns the previous state of keyboard translation.
    1.47   */
    1.48 -extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
    1.49 +extern DECLSPEC int SDLCALL SDL_EnableUNICODE (int enable);
    1.50  
    1.51  /*
    1.52   * Enable/Disable keyboard repeat.  Keyboard repeat defaults to off.
    1.53 @@ -83,8 +90,8 @@
    1.54  /*
    1.55   * If 'delay' is set to 0, keyboard repeat is disabled.
    1.56   */
    1.57 -extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
    1.58 -extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
    1.59 +extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat (int delay, int interval);
    1.60 +extern DECLSPEC void SDLCALL SDL_GetKeyRepeat (int *delay, int *interval);
    1.61  
    1.62  /*
    1.63   * Get a snapshot of the current state of the keyboard.
    1.64 @@ -93,29 +100,33 @@
    1.65   * 	Uint8 *keystate = SDL_GetKeyState(NULL);
    1.66   *	if ( keystate[SDLK_RETURN] ) ... <RETURN> is pressed.
    1.67   */
    1.68 -extern DECLSPEC Uint8 * SDLCALL SDL_GetKeyState(int *numkeys);
    1.69 +extern DECLSPEC Uint8 *SDLCALL SDL_GetKeyState (int *numkeys);
    1.70  
    1.71  /*
    1.72   * Get the current key modifier state
    1.73   */
    1.74 -extern DECLSPEC SDLMod SDLCALL SDL_GetModState(void);
    1.75 +extern DECLSPEC SDLMod SDLCALL SDL_GetModState (void);
    1.76  
    1.77  /*
    1.78   * Set the current key modifier state
    1.79   * This does not change the keyboard state, only the key modifier flags.
    1.80   */
    1.81 -extern DECLSPEC void SDLCALL SDL_SetModState(SDLMod modstate);
    1.82 +extern DECLSPEC void SDLCALL SDL_SetModState (SDLMod modstate);
    1.83  
    1.84  /*
    1.85   * Get the name of an SDL virtual keysym
    1.86   */
    1.87 -extern DECLSPEC char * SDLCALL SDL_GetKeyName(SDLKey key);
    1.88 +extern DECLSPEC char *SDLCALL SDL_GetKeyName (SDLKey key);
    1.89  
    1.90  
    1.91  /* Ends C function definitions when using C++ */
    1.92  #ifdef __cplusplus
    1.93 +/* *INDENT-OFF* */
    1.94  }
    1.95 +/* *INDENT-ON* */
    1.96  #endif
    1.97  #include "close_code.h"
    1.98  
    1.99  #endif /* _SDL_keyboard_h */
   1.100 +
   1.101 +/* vi: set ts=4 sw=4 expandtab: */