src/joystick/windows/SDL_dxjoystick_c.h
changeset 7686 adacc93b5213
parent 7191 75360622e65f
child 7831 214cd9137ea9
equal deleted inserted replaced
7685:89f669598b87 7686:adacc93b5213
    41 #include <oleauto.h>
    41 #include <oleauto.h>
    42 #include <xinput.h>
    42 #include <xinput.h>
    43 #include <devguid.h>
    43 #include <devguid.h>
    44 #include <dbt.h>
    44 #include <dbt.h>
    45 #include <xinput.h>
    45 #include <xinput.h>
       
    46 
       
    47 #ifndef XUSER_MAX_COUNT
       
    48 #define XUSER_MAX_COUNT 4
       
    49 #endif
       
    50 #ifndef XUSER_INDEX_ANY
       
    51 #define XUSER_INDEX_ANY     0x000000FF
       
    52 #endif
       
    53 #ifndef XINPUT_CAPS_FFB_SUPPORTED
       
    54 #define XINPUT_CAPS_FFB_SUPPORTED 0x0001
       
    55 #endif
       
    56 
    46 
    57 
    47 /* typedef's for XInput structs we use */
    58 /* typedef's for XInput structs we use */
    48 typedef struct
    59 typedef struct
    49 {
    60 {
    50     WORD wButtons;
    61     WORD wButtons;
    92 extern DWORD SDL_XInputVersion;  /* ((major << 16) & 0xFF00) | (minor & 0xFF) */
   103 extern DWORD SDL_XInputVersion;  /* ((major << 16) & 0xFF00) | (minor & 0xFF) */
    93 
   104 
    94 #define XINPUTGETSTATE          SDL_XInputGetState
   105 #define XINPUTGETSTATE          SDL_XInputGetState
    95 #define XINPUTSETSTATE          SDL_XInputSetState
   106 #define XINPUTSETSTATE          SDL_XInputSetState
    96 #define XINPUTGETCAPABILITIES   SDL_XInputGetCapabilities
   107 #define XINPUTGETCAPABILITIES   SDL_XInputGetCapabilities
    97 #define INVALID_XINPUT_USERID 255
   108 #define INVALID_XINPUT_USERID   XUSER_INDEX_ANY
    98 #define SDL_XINPUT_MAX_DEVICES 4
   109 #define SDL_XINPUT_MAX_DEVICES  XUSER_MAX_COUNT
    99 
       
   100 #ifndef XINPUT_CAPS_FFB_SUPPORTED
       
   101 #define XINPUT_CAPS_FFB_SUPPORTED 0x0001
       
   102 #endif
       
   103 
       
   104 
   110 
   105 #define MAX_INPUTS  256     /* each joystick can have up to 256 inputs */
   111 #define MAX_INPUTS  256     /* each joystick can have up to 256 inputs */
   106 
   112 
   107 
   113 
   108 /* local types */
   114 /* local types */