zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_dxjoystick_c.h File Reference
#include "SDL_config.h"
#include "../../core/windows/SDL_windows.h"
#include <dinput.h>
#include <wbemcli.h>
#include <oleauto.h>
#include <xinput.h>
#include <devguid.h>
#include <dbt.h>

Go to the source code of this file.

Classes

struct  input_t
 
struct  joystick_hwdata
 
struct  XINPUT_GAMEPAD_EX
 
struct  XINPUT_STATE_EX
 

Macros

#define COBJMACROS
 
#define DIRECTINPUT_VERSION   0x0800 /* Need version 7 for force feedback. Need version 8 so IDirectInput8_EnumDevices doesn't leak like a sieve... */
 
#define INVALID_XINPUT_USERID   XUSER_INDEX_ANY
 
#define MAX_INPUTS   256 /* each joystick can have up to 256 inputs */
 
#define SDL_XINPUT_MAX_DEVICES   XUSER_MAX_COUNT
 
#define XINPUT_CAPS_FFB_SUPPORTED   0x0001
 
#define XINPUTGETCAPABILITIES   SDL_XInputGetCapabilities
 
#define XINPUTGETSTATE   SDL_XInputGetState
 
#define XINPUTSETSTATE   SDL_XInputSetState
 
#define XUSER_INDEX_ANY   0x000000FF
 
#define XUSER_MAX_COUNT   4
 

Typedefs

typedef DWORD dwFlags
 
typedef struct input_t input_t
 
typedef DWORD XINPUT_CAPABILITIES * pCapabilities
 
typedef XINPUT_STATE_EXpState
 
typedef XINPUT_VIBRATION * pVibration
 
typedef enum Type Type
 

Enumerations

enum  Type { BUTTON, AXIS, HAT }
 

Functions

typedef DWORD (WINAPI *XInputGetState_t)(DWORD dwUserIndex
 
int WIN_LoadXInputDLL (void)
 
void WIN_UnloadXInputDLL (void)
 

Variables

XInputGetCapabilities_t SDL_XInputGetCapabilities
 
XInputGetState_t SDL_XInputGetState
 
XInputSetState_t SDL_XInputSetState
 
DWORD SDL_XInputVersion
 

Macro Definition Documentation

#define COBJMACROS

Definition at line 39 of file SDL_dxjoystick_c.h.

#define DIRECTINPUT_VERSION   0x0800 /* Need version 7 for force feedback. Need version 8 so IDirectInput8_EnumDevices doesn't leak like a sieve... */

Definition at line 37 of file SDL_dxjoystick_c.h.

#define INVALID_XINPUT_USERID   XUSER_INDEX_ANY

Definition at line 108 of file SDL_dxjoystick_c.h.

#define MAX_INPUTS   256 /* each joystick can have up to 256 inputs */

Definition at line 111 of file SDL_dxjoystick_c.h.

#define SDL_XINPUT_MAX_DEVICES   XUSER_MAX_COUNT

Definition at line 109 of file SDL_dxjoystick_c.h.

#define XINPUT_CAPS_FFB_SUPPORTED   0x0001

Definition at line 54 of file SDL_dxjoystick_c.h.

#define XINPUTGETCAPABILITIES   SDL_XInputGetCapabilities

Definition at line 107 of file SDL_dxjoystick_c.h.

#define XINPUTGETSTATE   SDL_XInputGetState

Definition at line 105 of file SDL_dxjoystick_c.h.

#define XINPUTSETSTATE   SDL_XInputSetState

Definition at line 106 of file SDL_dxjoystick_c.h.

#define XUSER_INDEX_ANY   0x000000FF

Definition at line 51 of file SDL_dxjoystick_c.h.

#define XUSER_MAX_COUNT   4

Definition at line 48 of file SDL_dxjoystick_c.h.

Typedef Documentation

typedef DWORD dwFlags

Definition at line 93 of file SDL_dxjoystick_c.h.

typedef struct input_t input_t
typedef DWORD XINPUT_CAPABILITIES* pCapabilities

Definition at line 93 of file SDL_dxjoystick_c.h.

Definition at line 82 of file SDL_dxjoystick_c.h.

typedef XINPUT_VIBRATION* pVibration

Definition at line 88 of file SDL_dxjoystick_c.h.

typedef enum Type Type

Enumeration Type Documentation

enum Type
Enumerator
BUTTON 
AXIS 
HAT 

Definition at line 115 of file SDL_dxjoystick_c.h.

Function Documentation

int WIN_LoadXInputDLL ( void  )
void WIN_UnloadXInputDLL ( void  )

Variable Documentation

XInputGetCapabilities_t SDL_XInputGetCapabilities
XInputGetState_t SDL_XInputGetState
XInputSetState_t SDL_XInputSetState
DWORD SDL_XInputVersion