ReactOS  0.4.14-dev-390-g34947ad
xinput.h File Reference
#include <windef.h>
Include dependency graph for xinput.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _XINPUT_GAMEPAD
 
struct  _XINPUT_GAMEPAD_EX
 
struct  _XINPUT_STATE
 
struct  _XINPUT_STATE_EX
 
struct  _XINPUT_VIBRATION
 
struct  _XINPUT_CAPABILITIES
 
struct  _XINPUT_KEYSTROKE
 
struct  _XINPUT_BATTERY_INFORMATION
 

Macros

#define XINPUT_GAMEPAD_DPAD_UP   0x0001
 
#define XINPUT_GAMEPAD_DPAD_DOWN   0x0002
 
#define XINPUT_GAMEPAD_DPAD_LEFT   0x0004
 
#define XINPUT_GAMEPAD_DPAD_RIGHT   0x0008
 
#define XINPUT_GAMEPAD_START   0x0010
 
#define XINPUT_GAMEPAD_BACK   0x0020
 
#define XINPUT_GAMEPAD_LEFT_THUMB   0x0040
 
#define XINPUT_GAMEPAD_RIGHT_THUMB   0x0080
 
#define XINPUT_GAMEPAD_LEFT_SHOULDER   0x0100
 
#define XINPUT_GAMEPAD_RIGHT_SHOULDER   0x0200
 
#define XINPUT_GAMEPAD_A   0x1000
 
#define XINPUT_GAMEPAD_B   0x2000
 
#define XINPUT_GAMEPAD_X   0x4000
 
#define XINPUT_GAMEPAD_Y   0x8000
 
#define XINPUT_KEYSTROKE_KEYDOWN   0x0001
 
#define XINPUT_KEYSTROKE_KEYUP   0x0002
 
#define XINPUT_KEYSTROKE_REPEAT   0x0004
 
#define VK_PAD_A   0x5800
 
#define VK_PAD_B   0x5801
 
#define VK_PAD_X   0x5802
 
#define VK_PAD_Y   0x5803
 
#define VK_PAD_RSHOULDER   0x5804
 
#define VK_PAD_LSHOULDER   0x5805
 
#define VK_PAD_LTRIGGER   0x5806
 
#define VK_PAD_RTRIGGER   0x5807
 
#define VK_PAD_DPAD_UP   0x5810
 
#define VK_PAD_DPAD_DOWN   0x5811
 
#define VK_PAD_DPAD_LEFT   0x5812
 
#define VK_PAD_DPAD_RIGHT   0x5813
 
#define VK_PAD_START   0x5814
 
#define VK_PAD_BACK   0x5815
 
#define VK_PAD_LTHUMB_PRESS   0x5816
 
#define VK_PAD_RTHUMB_PRESS   0x5817
 
#define VK_PAD_LTHUMB_UP   0x5820
 
#define VK_PAD_LTHUMB_DOWN   0x5821
 
#define VK_PAD_LTHUMB_RIGHT   0x5822
 
#define VK_PAD_LTHUMB_LEFT   0x5823
 
#define VK_PAD_LTHUMB_UPLEFT   0x5824
 
#define VK_PAD_LTHUMB_UPRIGHT   0x5825
 
#define VK_PAD_LTHUMB_DOWNRIGHT   0x5826
 
#define VK_PAD_LTHUMB_DOWNLEFT   0x5827
 
#define VK_PAD_RTHUMB_UP   0x5830
 
#define VK_PAD_RTHUMB_DOWN   0x5831
 
#define VK_PAD_RTHUMB_RIGHT   0x5832
 
#define VK_PAD_RTHUMB_LEFT   0x5833
 
#define VK_PAD_RTHUMB_UPLEFT   0x5834
 
#define VK_PAD_RTHUMB_UPRIGHT   0x5835
 
#define VK_PAD_RTHUMB_DOWNRIGHT   0x5836
 
#define VK_PAD_RTHUMB_DOWNLEFT   0x5837
 
#define XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE   7849
 
#define XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE   8689
 
#define XINPUT_GAMEPAD_TRIGGER_THRESHOLD   30
 
#define XINPUT_DEVTYPE_GAMEPAD   0x01
 
#define XINPUT_DEVSUBTYPE_GAMEPAD   0x01
 
#define XINPUT_DEVSUBTYPE_WHEEL   0x02
 
#define XINPUT_DEVSUBTYPE_ARCADE_STICK   0x03
 
#define XINPUT_DEVSUBTYPE_FLIGHT_SICK   0x04
 
#define XINPUT_DEVSUBTYPE_DANCE_PAD   0x05
 
#define XINPUT_DEVSUBTYPE_GUITAR   0x06
 
#define XINPUT_DEVSUBTYPE_DRUM_KIT   0x08
 
#define XINPUT_CAPS_VOICE_SUPPORTED   0x0004
 
#define XINPUT_FLAG_GAMEPAD   0x00000001
 
#define BATTERY_DEVTYPE_GAMEPAD   0x00
 
#define BATTERY_DEVTYPE_HEADSET   0x01
 
#define BATTERY_TYPE_DISCONNECTED   0x00
 
#define BATTERY_TYPE_WIRED   0x01
 
#define BATTERY_TYPE_ALKALINE   0x02
 
#define BATTERY_TYPE_NIMH   0x03
 
#define BATTERY_TYPE_UNKNOWN   0xFF
 
#define BATTERY_LEVEL_EMPTY   0x00
 
#define BATTERY_LEVEL_LOW   0x01
 
#define BATTERY_LEVEL_MEDIUM   0x02
 
#define BATTERY_LEVEL_FULL   0x03
 
#define XUSER_MAX_COUNT   4
 
#define XUSER_INDEX_ANY   0x000000FF
 

Typedefs

typedef struct _XINPUT_GAMEPAD XINPUT_GAMEPAD
 
typedef struct _XINPUT_GAMEPADPXINPUT_GAMEPAD
 
typedef struct _XINPUT_GAMEPAD_EX XINPUT_GAMEPAD_EX
 
typedef struct _XINPUT_GAMEPAD_EXPXINPUT_GAMEPAD_EX
 
typedef struct _XINPUT_STATE XINPUT_STATE
 
typedef struct _XINPUT_STATEPXINPUT_STATE
 
typedef struct _XINPUT_STATE_EX XINPUT_STATE_EX
 
typedef struct _XINPUT_STATE_EXPXINPUT_STATE_EX
 
typedef struct _XINPUT_VIBRATION XINPUT_VIBRATION
 
typedef struct _XINPUT_VIBRATIONPXINPUT_VIBRATION
 
typedef struct _XINPUT_CAPABILITIES XINPUT_CAPABILITIES
 
typedef struct _XINPUT_CAPABILITIESPXINPUT_CAPABILITIES
 
typedef struct _XINPUT_KEYSTROKE XINPUT_KEYSTROKE
 
typedef struct _XINPUT_KEYSTROKEPXINPUT_KEYSTROKE
 
typedef struct _XINPUT_BATTERY_INFORMATION XINPUT_BATTERY_INFORMATION
 
typedef struct _XINPUT_BATTERY_INFORMATIONPXINPUT_BATTERY_INFORMATION
 

Functions

void WINAPI XInputEnable (BOOL)
 
DWORD WINAPI XInputSetState (DWORD, XINPUT_VIBRATION *)
 
DWORD WINAPI XInputGetState (DWORD, XINPUT_STATE *)
 
DWORD WINAPI XInputGetKeystroke (DWORD, DWORD, PXINPUT_KEYSTROKE)
 
DWORD WINAPI XInputGetCapabilities (DWORD, DWORD, XINPUT_CAPABILITIES *)
 
DWORD WINAPI XInputGetDSoundAudioDeviceGuids (DWORD, GUID *, GUID *)
 
DWORD WINAPI XInputGetBatteryInformation (DWORD, BYTE, XINPUT_BATTERY_INFORMATION *)
 
DWORD WINAPI XInputGetStateEx (DWORD, XINPUT_STATE_EX *)
 

Macro Definition Documentation

◆ BATTERY_DEVTYPE_GAMEPAD

#define BATTERY_DEVTYPE_GAMEPAD   0x00

Definition at line 139 of file xinput.h.

◆ BATTERY_DEVTYPE_HEADSET

#define BATTERY_DEVTYPE_HEADSET   0x01

Definition at line 140 of file xinput.h.

◆ BATTERY_LEVEL_EMPTY

#define BATTERY_LEVEL_EMPTY   0x00

Definition at line 146 of file xinput.h.

◆ BATTERY_LEVEL_FULL

#define BATTERY_LEVEL_FULL   0x03

Definition at line 149 of file xinput.h.

◆ BATTERY_LEVEL_LOW

#define BATTERY_LEVEL_LOW   0x01

Definition at line 147 of file xinput.h.

◆ BATTERY_LEVEL_MEDIUM

#define BATTERY_LEVEL_MEDIUM   0x02

Definition at line 148 of file xinput.h.

◆ BATTERY_TYPE_ALKALINE

#define BATTERY_TYPE_ALKALINE   0x02

Definition at line 143 of file xinput.h.

◆ BATTERY_TYPE_DISCONNECTED

#define BATTERY_TYPE_DISCONNECTED   0x00

Definition at line 141 of file xinput.h.

◆ BATTERY_TYPE_NIMH

#define BATTERY_TYPE_NIMH   0x03

Definition at line 144 of file xinput.h.

◆ BATTERY_TYPE_UNKNOWN

#define BATTERY_TYPE_UNKNOWN   0xFF

Definition at line 145 of file xinput.h.

◆ BATTERY_TYPE_WIRED

#define BATTERY_TYPE_WIRED   0x01

Definition at line 142 of file xinput.h.

◆ VK_PAD_A

#define VK_PAD_A   0x5800

Definition at line 60 of file xinput.h.

◆ VK_PAD_B

#define VK_PAD_B   0x5801

Definition at line 61 of file xinput.h.

◆ VK_PAD_BACK

#define VK_PAD_BACK   0x5815

Definition at line 73 of file xinput.h.

◆ VK_PAD_DPAD_DOWN

#define VK_PAD_DPAD_DOWN   0x5811

Definition at line 69 of file xinput.h.

◆ VK_PAD_DPAD_LEFT

#define VK_PAD_DPAD_LEFT   0x5812

Definition at line 70 of file xinput.h.

◆ VK_PAD_DPAD_RIGHT

#define VK_PAD_DPAD_RIGHT   0x5813

Definition at line 71 of file xinput.h.

◆ VK_PAD_DPAD_UP

#define VK_PAD_DPAD_UP   0x5810

Definition at line 68 of file xinput.h.

◆ VK_PAD_LSHOULDER

#define VK_PAD_LSHOULDER   0x5805

Definition at line 65 of file xinput.h.

◆ VK_PAD_LTHUMB_DOWN

#define VK_PAD_LTHUMB_DOWN   0x5821

Definition at line 77 of file xinput.h.

◆ VK_PAD_LTHUMB_DOWNLEFT

#define VK_PAD_LTHUMB_DOWNLEFT   0x5827

Definition at line 83 of file xinput.h.

◆ VK_PAD_LTHUMB_DOWNRIGHT

#define VK_PAD_LTHUMB_DOWNRIGHT   0x5826

Definition at line 82 of file xinput.h.

◆ VK_PAD_LTHUMB_LEFT

#define VK_PAD_LTHUMB_LEFT   0x5823

Definition at line 79 of file xinput.h.

◆ VK_PAD_LTHUMB_PRESS

#define VK_PAD_LTHUMB_PRESS   0x5816

Definition at line 74 of file xinput.h.

◆ VK_PAD_LTHUMB_RIGHT

#define VK_PAD_LTHUMB_RIGHT   0x5822

Definition at line 78 of file xinput.h.

◆ VK_PAD_LTHUMB_UP

#define VK_PAD_LTHUMB_UP   0x5820

Definition at line 76 of file xinput.h.

◆ VK_PAD_LTHUMB_UPLEFT

#define VK_PAD_LTHUMB_UPLEFT   0x5824

Definition at line 80 of file xinput.h.

◆ VK_PAD_LTHUMB_UPRIGHT

#define VK_PAD_LTHUMB_UPRIGHT   0x5825

Definition at line 81 of file xinput.h.

◆ VK_PAD_LTRIGGER

#define VK_PAD_LTRIGGER   0x5806

Definition at line 66 of file xinput.h.

◆ VK_PAD_RSHOULDER

#define VK_PAD_RSHOULDER   0x5804

Definition at line 64 of file xinput.h.

◆ VK_PAD_RTHUMB_DOWN

#define VK_PAD_RTHUMB_DOWN   0x5831

Definition at line 85 of file xinput.h.

◆ VK_PAD_RTHUMB_DOWNLEFT

#define VK_PAD_RTHUMB_DOWNLEFT   0x5837

Definition at line 91 of file xinput.h.

◆ VK_PAD_RTHUMB_DOWNRIGHT

#define VK_PAD_RTHUMB_DOWNRIGHT   0x5836

Definition at line 90 of file xinput.h.

◆ VK_PAD_RTHUMB_LEFT

#define VK_PAD_RTHUMB_LEFT   0x5833

Definition at line 87 of file xinput.h.

◆ VK_PAD_RTHUMB_PRESS

#define VK_PAD_RTHUMB_PRESS   0x5817

Definition at line 75 of file xinput.h.

◆ VK_PAD_RTHUMB_RIGHT

#define VK_PAD_RTHUMB_RIGHT   0x5832

Definition at line 86 of file xinput.h.

◆ VK_PAD_RTHUMB_UP

#define VK_PAD_RTHUMB_UP   0x5830

Definition at line 84 of file xinput.h.

◆ VK_PAD_RTHUMB_UPLEFT

#define VK_PAD_RTHUMB_UPLEFT   0x5834

Definition at line 88 of file xinput.h.

◆ VK_PAD_RTHUMB_UPRIGHT

#define VK_PAD_RTHUMB_UPRIGHT   0x5835

Definition at line 89 of file xinput.h.

◆ VK_PAD_RTRIGGER

#define VK_PAD_RTRIGGER   0x5807

Definition at line 67 of file xinput.h.

◆ VK_PAD_START

#define VK_PAD_START   0x5814

Definition at line 72 of file xinput.h.

◆ VK_PAD_X

#define VK_PAD_X   0x5802

Definition at line 62 of file xinput.h.

◆ VK_PAD_Y

#define VK_PAD_Y   0x5803

Definition at line 63 of file xinput.h.

◆ XINPUT_CAPS_VOICE_SUPPORTED

#define XINPUT_CAPS_VOICE_SUPPORTED   0x0004

Definition at line 128 of file xinput.h.

◆ XINPUT_DEVSUBTYPE_ARCADE_STICK

#define XINPUT_DEVSUBTYPE_ARCADE_STICK   0x03

Definition at line 116 of file xinput.h.

◆ XINPUT_DEVSUBTYPE_DANCE_PAD

#define XINPUT_DEVSUBTYPE_DANCE_PAD   0x05

Definition at line 118 of file xinput.h.

◆ XINPUT_DEVSUBTYPE_DRUM_KIT

#define XINPUT_DEVSUBTYPE_DRUM_KIT   0x08

Definition at line 120 of file xinput.h.

◆ XINPUT_DEVSUBTYPE_FLIGHT_SICK

#define XINPUT_DEVSUBTYPE_FLIGHT_SICK   0x04

Definition at line 117 of file xinput.h.

◆ XINPUT_DEVSUBTYPE_GAMEPAD

#define XINPUT_DEVSUBTYPE_GAMEPAD   0x01

Definition at line 114 of file xinput.h.

◆ XINPUT_DEVSUBTYPE_GUITAR

#define XINPUT_DEVSUBTYPE_GUITAR   0x06

Definition at line 119 of file xinput.h.

◆ XINPUT_DEVSUBTYPE_WHEEL

#define XINPUT_DEVSUBTYPE_WHEEL   0x02

Definition at line 115 of file xinput.h.

◆ XINPUT_DEVTYPE_GAMEPAD

#define XINPUT_DEVTYPE_GAMEPAD   0x01

Definition at line 113 of file xinput.h.

◆ XINPUT_FLAG_GAMEPAD

#define XINPUT_FLAG_GAMEPAD   0x00000001

Definition at line 129 of file xinput.h.

◆ XINPUT_GAMEPAD_A

#define XINPUT_GAMEPAD_A   0x1000

Definition at line 42 of file xinput.h.

◆ XINPUT_GAMEPAD_B

#define XINPUT_GAMEPAD_B   0x2000

Definition at line 43 of file xinput.h.

◆ XINPUT_GAMEPAD_BACK

#define XINPUT_GAMEPAD_BACK   0x0020

Definition at line 37 of file xinput.h.

◆ XINPUT_GAMEPAD_DPAD_DOWN

#define XINPUT_GAMEPAD_DPAD_DOWN   0x0002

Definition at line 33 of file xinput.h.

◆ XINPUT_GAMEPAD_DPAD_LEFT

#define XINPUT_GAMEPAD_DPAD_LEFT   0x0004

Definition at line 34 of file xinput.h.

◆ XINPUT_GAMEPAD_DPAD_RIGHT

#define XINPUT_GAMEPAD_DPAD_RIGHT   0x0008

Definition at line 35 of file xinput.h.

◆ XINPUT_GAMEPAD_DPAD_UP

#define XINPUT_GAMEPAD_DPAD_UP   0x0001

Definition at line 32 of file xinput.h.

◆ XINPUT_GAMEPAD_LEFT_SHOULDER

#define XINPUT_GAMEPAD_LEFT_SHOULDER   0x0100

Definition at line 40 of file xinput.h.

◆ XINPUT_GAMEPAD_LEFT_THUMB

#define XINPUT_GAMEPAD_LEFT_THUMB   0x0040

Definition at line 38 of file xinput.h.

◆ XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE

#define XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE   7849

Definition at line 101 of file xinput.h.

◆ XINPUT_GAMEPAD_RIGHT_SHOULDER

#define XINPUT_GAMEPAD_RIGHT_SHOULDER   0x0200

Definition at line 41 of file xinput.h.

◆ XINPUT_GAMEPAD_RIGHT_THUMB

#define XINPUT_GAMEPAD_RIGHT_THUMB   0x0080

Definition at line 39 of file xinput.h.

◆ XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE

#define XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE   8689

Definition at line 102 of file xinput.h.

◆ XINPUT_GAMEPAD_START

#define XINPUT_GAMEPAD_START   0x0010

Definition at line 36 of file xinput.h.

◆ XINPUT_GAMEPAD_TRIGGER_THRESHOLD

#define XINPUT_GAMEPAD_TRIGGER_THRESHOLD   30

Definition at line 103 of file xinput.h.

◆ XINPUT_GAMEPAD_X

#define XINPUT_GAMEPAD_X   0x4000

Definition at line 44 of file xinput.h.

◆ XINPUT_GAMEPAD_Y

#define XINPUT_GAMEPAD_Y   0x8000

Definition at line 45 of file xinput.h.

◆ XINPUT_KEYSTROKE_KEYDOWN

#define XINPUT_KEYSTROKE_KEYDOWN   0x0001

Definition at line 52 of file xinput.h.

◆ XINPUT_KEYSTROKE_KEYUP

#define XINPUT_KEYSTROKE_KEYUP   0x0002

Definition at line 53 of file xinput.h.

◆ XINPUT_KEYSTROKE_REPEAT

#define XINPUT_KEYSTROKE_REPEAT   0x0004

Definition at line 54 of file xinput.h.

◆ XUSER_INDEX_ANY

#define XUSER_INDEX_ANY   0x000000FF

Definition at line 157 of file xinput.h.

◆ XUSER_MAX_COUNT

#define XUSER_MAX_COUNT   4

Definition at line 156 of file xinput.h.

Typedef Documentation

◆ PXINPUT_BATTERY_INFORMATION

◆ PXINPUT_CAPABILITIES

◆ PXINPUT_GAMEPAD

◆ PXINPUT_GAMEPAD_EX

◆ PXINPUT_KEYSTROKE

◆ PXINPUT_STATE

◆ PXINPUT_STATE_EX

◆ PXINPUT_VIBRATION

◆ XINPUT_BATTERY_INFORMATION

◆ XINPUT_CAPABILITIES

◆ XINPUT_GAMEPAD

◆ XINPUT_GAMEPAD_EX

◆ XINPUT_KEYSTROKE

◆ XINPUT_STATE

◆ XINPUT_STATE_EX

◆ XINPUT_VIBRATION

Function Documentation

◆ XInputEnable()

void WINAPI XInputEnable ( BOOL  )

Definition at line 53 of file xinput1_3_main.c.

54 {
55  /* Setting to false will stop messages from XInputSetState being sent
56  to the controllers. Setting to true will send the last vibration
57  value (sent to XInputSetState) to the controller and allow messages to
58  be sent */
59  FIXME("(enable %d) Stub!\n", enable);
60 }
#define FIXME(fmt,...)
Definition: debug.h:110
GLboolean enable
Definition: glext.h:11120

◆ XInputGetBatteryInformation()

DWORD WINAPI XInputGetBatteryInformation ( DWORD  ,
BYTE  ,
XINPUT_BATTERY_INFORMATION  
)

Definition at line 155 of file xinput1_3_main.c.

156 {
157  FIXME("(index %u, type %u, battery %p) Stub!\n", index, type, battery);
158 
159  if (index >= XUSER_MAX_COUNT)
160  return ERROR_BAD_ARGUMENTS;
163 
164  return ERROR_NOT_SUPPORTED;
165 }
#define XUSER_MAX_COUNT
Definition: xinput.h:156
#define ERROR_BAD_ARGUMENTS
Definition: winerror.h:232
struct @590 controllers[XUSER_MAX_COUNT]
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
#define ERROR_DEVICE_NOT_CONNECTED
Definition: winerror.h:689
#define FIXME(fmt,...)
Definition: debug.h:110
GLuint index
Definition: glext.h:6031
#define ERROR_NOT_SUPPORTED
Definition: compat.h:90
BOOL connected

◆ XInputGetCapabilities()

DWORD WINAPI XInputGetCapabilities ( DWORD  ,
DWORD  ,
XINPUT_CAPABILITIES  
)

Definition at line 128 of file xinput1_3_main.c.

129 {
130  static int warn_once;
131 
132  if (!warn_once++)
133  FIXME("(index %u, flags 0x%x, capabilities %p) Stub!\n", index, flags, capabilities);
134 
135  if (index >= XUSER_MAX_COUNT)
136  return ERROR_BAD_ARGUMENTS;
139 
140  return ERROR_NOT_SUPPORTED;
141 }
#define XUSER_MAX_COUNT
Definition: xinput.h:156
#define ERROR_BAD_ARGUMENTS
Definition: winerror.h:232
struct @590 controllers[XUSER_MAX_COUNT]
#define ERROR_DEVICE_NOT_CONNECTED
Definition: winerror.h:689
#define FIXME(fmt,...)
Definition: debug.h:110
GLuint index
Definition: glext.h:6031
GLbitfield flags
Definition: glext.h:7161
#define ERROR_NOT_SUPPORTED
Definition: compat.h:90
BOOL connected

◆ XInputGetDSoundAudioDeviceGuids()

DWORD WINAPI XInputGetDSoundAudioDeviceGuids ( DWORD  ,
GUID ,
GUID  
)

Definition at line 143 of file xinput1_3_main.c.

144 {
145  FIXME("(index %u, render guid %p, capture guid %p) Stub!\n", index, render_guid, capture_guid);
146 
147  if (index >= XUSER_MAX_COUNT)
148  return ERROR_BAD_ARGUMENTS;
151 
152  return ERROR_NOT_SUPPORTED;
153 }
#define XUSER_MAX_COUNT
Definition: xinput.h:156
#define ERROR_BAD_ARGUMENTS
Definition: winerror.h:232
struct @590 controllers[XUSER_MAX_COUNT]
#define ERROR_DEVICE_NOT_CONNECTED
Definition: winerror.h:689
#define FIXME(fmt,...)
Definition: debug.h:110
GLuint index
Definition: glext.h:6031
#define ERROR_NOT_SUPPORTED
Definition: compat.h:90
BOOL connected

◆ XInputGetKeystroke()

DWORD WINAPI XInputGetKeystroke ( DWORD  ,
DWORD  ,
PXINPUT_KEYSTROKE   
)

Definition at line 113 of file xinput1_3_main.c.

114 {
115  static int warn_once;
116 
117  if (!warn_once++)
118  FIXME("(index %u, reserved %u, keystroke %p) Stub!\n", index, reserved, keystroke);
119 
120  if (index >= XUSER_MAX_COUNT)
121  return ERROR_BAD_ARGUMENTS;
124 
125  return ERROR_NOT_SUPPORTED;
126 }
#define XUSER_MAX_COUNT
Definition: xinput.h:156
#define ERROR_BAD_ARGUMENTS
Definition: winerror.h:232
struct @590 controllers[XUSER_MAX_COUNT]
#define ERROR_DEVICE_NOT_CONNECTED
Definition: winerror.h:689
#define FIXME(fmt,...)
Definition: debug.h:110
r reserved
Definition: btrfs.c:2865
GLuint index
Definition: glext.h:6031
#define ERROR_NOT_SUPPORTED
Definition: compat.h:90
BOOL connected

◆ XInputGetState()

DWORD WINAPI XInputGetState ( DWORD  ,
XINPUT_STATE  
)

Definition at line 74 of file xinput1_3_main.c.

75 {
76  union
77  {
79  XINPUT_STATE_EX state_ex;
80  } xinput;
81  DWORD ret;
82  static int warn_once;
83 
84  if (!warn_once++)
85  FIXME("(index %u, state %p) Stub!\n", index, state);
86 
87  ret = XInputGetStateEx(index, &xinput.state_ex);
88  if (ret != ERROR_SUCCESS)
89  return ret;
90 
91  /* The main difference between this and the Ex version is the media guide button */
92  xinput.state.Gamepad.wButtons &= ~XINPUT_GAMEPAD_GUIDE;
93  *state = xinput.state;
94 
95  return ERROR_SUCCESS;
96 }
#define XINPUT_GAMEPAD_GUIDE
#define ERROR_SUCCESS
Definition: deptool.c:10
#define FIXME(fmt,...)
Definition: debug.h:110
GLuint index
Definition: glext.h:6031
unsigned long DWORD
Definition: ntddk_ex.h:95
int ret
static int state
Definition: maze.c:121
DWORD WINAPI DECLSPEC_HOTPATCH XInputGetStateEx(DWORD index, XINPUT_STATE_EX *state_ex)

◆ XInputGetStateEx()

DWORD WINAPI XInputGetStateEx ( DWORD  ,
XINPUT_STATE_EX  
)

Definition at line 98 of file xinput1_3_main.c.

99 {
100  static int warn_once;
101 
102  if (!warn_once++)
103  FIXME("(index %u, state %p) Stub!\n", index, state_ex);
104 
105  if (index >= XUSER_MAX_COUNT)
106  return ERROR_BAD_ARGUMENTS;
109 
110  return ERROR_NOT_SUPPORTED;
111 }
#define XUSER_MAX_COUNT
Definition: xinput.h:156
#define ERROR_BAD_ARGUMENTS
Definition: winerror.h:232
struct @590 controllers[XUSER_MAX_COUNT]
#define ERROR_DEVICE_NOT_CONNECTED
Definition: winerror.h:689
#define FIXME(fmt,...)
Definition: debug.h:110
GLuint index
Definition: glext.h:6031
#define ERROR_NOT_SUPPORTED
Definition: compat.h:90
BOOL connected

Referenced by XInputGetState().

◆ XInputSetState()

DWORD WINAPI XInputSetState ( DWORD  ,
XINPUT_VIBRATION  
)

Definition at line 62 of file xinput1_3_main.c.

63 {
64  FIXME("(index %u, vibration %p) Stub!\n", index, vibration);
65 
66  if (index >= XUSER_MAX_COUNT)
67  return ERROR_BAD_ARGUMENTS;
70 
71  return ERROR_NOT_SUPPORTED;
72 }
#define XUSER_MAX_COUNT
Definition: xinput.h:156
#define ERROR_BAD_ARGUMENTS
Definition: winerror.h:232
struct @590 controllers[XUSER_MAX_COUNT]
#define ERROR_DEVICE_NOT_CONNECTED
Definition: winerror.h:689
#define FIXME(fmt,...)
Definition: debug.h:110
GLuint index
Definition: glext.h:6031
#define ERROR_NOT_SUPPORTED
Definition: compat.h:90
BOOL connected