include/SDL_joystick.h
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/include/SDL_joystick.h	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/include/SDL_joystick.h	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -54,14 +54,14 @@
     1.4  /*
     1.5   * Count the number of joysticks attached to the system
     1.6   */
     1.7 -extern DECLSPEC int SDLCALL SDL_NumJoysticks (void);
     1.8 +extern DECLSPEC int SDLCALL SDL_NumJoysticks(void);
     1.9  
    1.10  /*
    1.11   * Get the implementation dependent name of a joystick.
    1.12   * This can be called before any joysticks are opened.
    1.13   * If no name can be found, this function returns NULL.
    1.14   */
    1.15 -extern DECLSPEC const char *SDLCALL SDL_JoystickName (int device_index);
    1.16 +extern DECLSPEC const char *SDLCALL SDL_JoystickName(int device_index);
    1.17  
    1.18  /*
    1.19   * Open a joystick for use - the index passed as an argument refers to
    1.20 @@ -70,46 +70,46 @@
    1.21   *
    1.22   * This function returns a joystick identifier, or NULL if an error occurred.
    1.23   */
    1.24 -extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickOpen (int device_index);
    1.25 +extern DECLSPEC SDL_Joystick *SDLCALL SDL_JoystickOpen(int device_index);
    1.26  
    1.27  /*
    1.28   * Returns 1 if the joystick has been opened, or 0 if it has not.
    1.29   */
    1.30 -extern DECLSPEC int SDLCALL SDL_JoystickOpened (int device_index);
    1.31 +extern DECLSPEC int SDLCALL SDL_JoystickOpened(int device_index);
    1.32  
    1.33  /*
    1.34   * Get the device index of an opened joystick.
    1.35   */
    1.36 -extern DECLSPEC int SDLCALL SDL_JoystickIndex (SDL_Joystick * joystick);
    1.37 +extern DECLSPEC int SDLCALL SDL_JoystickIndex(SDL_Joystick * joystick);
    1.38  
    1.39  /*
    1.40   * Get the number of general axis controls on a joystick
    1.41   */
    1.42 -extern DECLSPEC int SDLCALL SDL_JoystickNumAxes (SDL_Joystick * joystick);
    1.43 +extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick * joystick);
    1.44  
    1.45  /*
    1.46   * Get the number of trackballs on a joystick
    1.47   * Joystick trackballs have only relative motion events associated
    1.48   * with them and their state cannot be polled.
    1.49   */
    1.50 -extern DECLSPEC int SDLCALL SDL_JoystickNumBalls (SDL_Joystick * joystick);
    1.51 +extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick * joystick);
    1.52  
    1.53  /*
    1.54   * Get the number of POV hats on a joystick
    1.55   */
    1.56 -extern DECLSPEC int SDLCALL SDL_JoystickNumHats (SDL_Joystick * joystick);
    1.57 +extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick * joystick);
    1.58  
    1.59  /*
    1.60   * Get the number of buttons on a joystick
    1.61   */
    1.62 -extern DECLSPEC int SDLCALL SDL_JoystickNumButtons (SDL_Joystick * joystick);
    1.63 +extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick * joystick);
    1.64  
    1.65  /*
    1.66   * Update the current state of the open joysticks.
    1.67   * This is called automatically by the event loop if any joystick
    1.68   * events are enabled.
    1.69   */
    1.70 -extern DECLSPEC void SDLCALL SDL_JoystickUpdate (void);
    1.71 +extern DECLSPEC void SDLCALL SDL_JoystickUpdate(void);
    1.72  
    1.73  /*
    1.74   * Enable/disable joystick event polling.
    1.75 @@ -118,15 +118,15 @@
    1.76   * information.
    1.77   * The state can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE.
    1.78   */
    1.79 -extern DECLSPEC int SDLCALL SDL_JoystickEventState (int state);
    1.80 +extern DECLSPEC int SDLCALL SDL_JoystickEventState(int state);
    1.81  
    1.82  /*
    1.83   * Get the current state of an axis control on a joystick
    1.84   * The state is a value ranging from -32768 to 32767.
    1.85   * The axis indices start at index 0.
    1.86   */
    1.87 -extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis (SDL_Joystick * joystick,
    1.88 -                                                    int axis);
    1.89 +extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick * joystick,
    1.90 +                                                   int axis);
    1.91  
    1.92  /*
    1.93   * Get the current state of a POV hat on a joystick
    1.94 @@ -144,28 +144,28 @@
    1.95  /*
    1.96   * The hat indices start at index 0.
    1.97   */
    1.98 -extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat (SDL_Joystick * joystick,
    1.99 -                                                  int hat);
   1.100 +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick * joystick,
   1.101 +                                                 int hat);
   1.102  
   1.103  /*
   1.104   * Get the ball axis change since the last poll
   1.105   * This returns 0, or -1 if you passed it invalid parameters.
   1.106   * The ball indices start at index 0.
   1.107   */
   1.108 -extern DECLSPEC int SDLCALL SDL_JoystickGetBall (SDL_Joystick * joystick,
   1.109 -                                                 int ball, int *dx, int *dy);
   1.110 +extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick * joystick,
   1.111 +                                                int ball, int *dx, int *dy);
   1.112  
   1.113  /*
   1.114   * Get the current state of a button on a joystick
   1.115   * The button indices start at index 0.
   1.116   */
   1.117 -extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton (SDL_Joystick * joystick,
   1.118 -                                                     int button);
   1.119 +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick * joystick,
   1.120 +                                                    int button);
   1.121  
   1.122  /*
   1.123   * Close a joystick previously opened with SDL_JoystickOpen()
   1.124   */
   1.125 -extern DECLSPEC void SDLCALL SDL_JoystickClose (SDL_Joystick * joystick);
   1.126 +extern DECLSPEC void SDLCALL SDL_JoystickClose(SDL_Joystick * joystick);
   1.127  
   1.128  
   1.129  /* Ends C function definitions when using C++ */