include/SDL_joystick.h
changeset 1895 c121d94672cb
parent 1358 c71e05b4dc2e
child 2859 99210400e8b9
     1.1 --- a/include/SDL_joystick.h	Thu Jul 06 18:01:37 2006 +0000
     1.2 +++ b/include/SDL_joystick.h	Mon Jul 10 21:04:37 2006 +0000
     1.3 @@ -20,7 +20,11 @@
     1.4      slouken@libsdl.org
     1.5  */
     1.6  
     1.7 -/* Include file for SDL joystick event handling */
     1.8 +/**
     1.9 + * \file SDL_joystick.h
    1.10 + *
    1.11 + * Include file for SDL joystick event handling
    1.12 + */
    1.13  
    1.14  #ifndef _SDL_joystick_h
    1.15  #define _SDL_joystick_h
    1.16 @@ -31,7 +35,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  /* In order to use these functions, SDL_Init() must have been called
    1.26 @@ -55,7 +61,7 @@
    1.27   * This can be called before any joysticks are opened.
    1.28   * If no name can be found, this function returns NULL.
    1.29   */
    1.30 -extern DECLSPEC const char * SDLCALL SDL_JoystickName(int device_index);
    1.31 +extern DECLSPEC const char *SDLCALL SDL_JoystickName(int device_index);
    1.32  
    1.33  /*
    1.34   * Open a joystick for use - the index passed as an argument refers to
    1.35 @@ -64,7 +70,7 @@
    1.36   *
    1.37   * This function returns a joystick identifier, or NULL if an error occurred.
    1.38   */
    1.39 -extern DECLSPEC SDL_Joystick * SDLCALL SDL_JoystickOpen(int device_index);
    1.40 +extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickOpen(int device_index);
    1.41  
    1.42  /*
    1.43   * Returns 1 if the joystick has been opened, or 0 if it has not.
    1.44 @@ -74,29 +80,29 @@
    1.45  /*
    1.46   * Get the device index of an opened joystick.
    1.47   */
    1.48 -extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick *joystick);
    1.49 +extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick * joystick);
    1.50  
    1.51  /*
    1.52   * Get the number of general axis controls on a joystick
    1.53   */
    1.54 -extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick *joystick);
    1.55 +extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick * joystick);
    1.56  
    1.57  /*
    1.58   * Get the number of trackballs on a joystick
    1.59   * Joystick trackballs have only relative motion events associated
    1.60   * with them and their state cannot be polled.
    1.61   */
    1.62 -extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick *joystick);
    1.63 +extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick * joystick);
    1.64  
    1.65  /*
    1.66   * Get the number of POV hats on a joystick
    1.67   */
    1.68 -extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick *joystick);
    1.69 +extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick * joystick);
    1.70  
    1.71  /*
    1.72   * Get the number of buttons on a joystick
    1.73   */
    1.74 -extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick *joystick);
    1.75 +extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick * joystick);
    1.76  
    1.77  /*
    1.78   * Update the current state of the open joysticks.
    1.79 @@ -119,7 +125,8 @@
    1.80   * The state is a value ranging from -32768 to 32767.
    1.81   * The axis indices start at index 0.
    1.82   */
    1.83 -extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis);
    1.84 +extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick * joystick,
    1.85 +                                                   int axis);
    1.86  
    1.87  /*
    1.88   * Get the current state of a POV hat on a joystick
    1.89 @@ -137,31 +144,38 @@
    1.90  /*
    1.91   * The hat indices start at index 0.
    1.92   */
    1.93 -extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
    1.94 +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick * joystick,
    1.95 +                                                 int hat);
    1.96  
    1.97  /*
    1.98   * Get the ball axis change since the last poll
    1.99   * This returns 0, or -1 if you passed it invalid parameters.
   1.100   * The ball indices start at index 0.
   1.101   */
   1.102 -extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);
   1.103 +extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick * joystick,
   1.104 +                                                int ball, int *dx, int *dy);
   1.105  
   1.106  /*
   1.107   * Get the current state of a button on a joystick
   1.108   * The button indices start at index 0.
   1.109   */
   1.110 -extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
   1.111 +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick * joystick,
   1.112 +                                                    int button);
   1.113  
   1.114  /*
   1.115   * Close a joystick previously opened with SDL_JoystickOpen()
   1.116   */
   1.117 -extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick *joystick);
   1.118 +extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick * joystick);
   1.119  
   1.120  
   1.121  /* Ends C function definitions when using C++ */
   1.122  #ifdef __cplusplus
   1.123 +/* *INDENT-OFF* */
   1.124  }
   1.125 +/* *INDENT-ON* */
   1.126  #endif
   1.127  #include "close_code.h"
   1.128  
   1.129  #endif /* _SDL_joystick_h */
   1.130 +
   1.131 +/* vi: set ts=4 sw=4 expandtab: */