include/SDL_joystick.h
changeset 337 9154ec9ca3d2
parent 297 f6ffac90895c
child 769 b8d311d90021
     1.1 --- a/include/SDL_joystick.h	Wed Apr 10 17:12:32 2002 +0000
     1.2 +++ b/include/SDL_joystick.h	Thu Apr 11 14:35:16 2002 +0000
     1.3 @@ -52,14 +52,14 @@
     1.4  /*
     1.5   * Count the number of joysticks attached to the system
     1.6   */
     1.7 -extern DECLSPEC int 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 *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 @@ -68,46 +68,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 *SDL_JoystickOpen(int device_index);
    1.25 +extern DECLSPEC SDL_Joystick * SDLCALL 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 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 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 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 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 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 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 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 @@ -116,14 +116,14 @@
    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 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 SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis);
    1.88 +extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick *joystick, int axis);
    1.89  
    1.90  /*
    1.91   * Get the current state of a POV hat on a joystick
    1.92 @@ -141,25 +141,25 @@
    1.93  /*
    1.94   * The hat indices start at index 0.
    1.95   */
    1.96 -extern DECLSPEC Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
    1.97 +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
    1.98  
    1.99  /*
   1.100   * Get the ball axis change since the last poll
   1.101   * This returns 0, or -1 if you passed it invalid parameters.
   1.102   * The ball indices start at index 0.
   1.103   */
   1.104 -extern DECLSPEC int SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);
   1.105 +extern DECLSPEC int SDLCALL SDL_JoystickGetBall(SDL_Joystick *joystick, int ball, int *dx, int *dy);
   1.106  
   1.107  /*
   1.108   * Get the current state of a button on a joystick
   1.109   * The button indices start at index 0.
   1.110   */
   1.111 -extern DECLSPEC Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
   1.112 +extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
   1.113  
   1.114  /*
   1.115   * Close a joystick previously opened with SDL_JoystickOpen()
   1.116   */
   1.117 -extern DECLSPEC void 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++ */