Classes | Macros | Typedefs | Functions
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_BATTERY_INFORMATION
 
struct  _XINPUT_CAPABILITIES
 
struct  _XINPUT_GAMEPAD
 
struct  _XINPUT_KEYSTROKE
 
struct  _XINPUT_STATE
 
struct  _XINPUT_VIBRATION
 

Macros

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

Typedefs

typedef struct _XINPUT_BATTERY_INFORMATIONPXINPUT_BATTERY_INFORMATION
 
typedef struct _XINPUT_CAPABILITIESPXINPUT_CAPABILITIES
 
typedef struct _XINPUT_GAMEPADPXINPUT_GAMEPAD
 
typedef struct _XINPUT_KEYSTROKEPXINPUT_KEYSTROKE
 
typedef struct _XINPUT_STATEPXINPUT_STATE
 
typedef struct _XINPUT_VIBRATIONPXINPUT_VIBRATION
 
typedef struct _XINPUT_BATTERY_INFORMATION XINPUT_BATTERY_INFORMATION
 
typedef struct _XINPUT_CAPABILITIES XINPUT_CAPABILITIES
 
typedef struct _XINPUT_GAMEPAD XINPUT_GAMEPAD
 
typedef struct _XINPUT_KEYSTROKE XINPUT_KEYSTROKE
 
typedef struct _XINPUT_STATE XINPUT_STATE
 
typedef struct _XINPUT_VIBRATION XINPUT_VIBRATION
 

Functions

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

Macro Definition Documentation

#define BATTERY_DEVTYPE_GAMEPAD   0x00

Definition at line 139 of file xinput.h.

#define BATTERY_DEVTYPE_HEADSET   0x01

Definition at line 140 of file xinput.h.

#define BATTERY_LEVEL_EMPTY   0x00

Definition at line 146 of file xinput.h.

#define BATTERY_LEVEL_FULL   0x03

Definition at line 149 of file xinput.h.

#define BATTERY_LEVEL_LOW   0x01

Definition at line 147 of file xinput.h.

#define BATTERY_LEVEL_MEDIUM   0x02

Definition at line 148 of file xinput.h.

#define BATTERY_TYPE_ALKALINE   0x02

Definition at line 143 of file xinput.h.

#define BATTERY_TYPE_DISCONNECTED   0x00

Definition at line 141 of file xinput.h.

#define BATTERY_TYPE_NIMH   0x03

Definition at line 144 of file xinput.h.

#define BATTERY_TYPE_UNKNOWN   0xFF

Definition at line 145 of file xinput.h.

#define BATTERY_TYPE_WIRED   0x01

Definition at line 142 of file xinput.h.

#define VK_PAD_A   0x5800

Definition at line 60 of file xinput.h.

#define VK_PAD_B   0x5801

Definition at line 61 of file xinput.h.

#define VK_PAD_BACK   0x5815

Definition at line 73 of file xinput.h.

#define VK_PAD_DPAD_DOWN   0x5811

Definition at line 69 of file xinput.h.

#define VK_PAD_DPAD_LEFT   0x5812

Definition at line 70 of file xinput.h.

#define VK_PAD_DPAD_RIGHT   0x5813

Definition at line 71 of file xinput.h.

#define VK_PAD_DPAD_UP   0x5810

Definition at line 68 of file xinput.h.

#define VK_PAD_LSHOULDER   0x5805

Definition at line 65 of file xinput.h.

#define VK_PAD_LTHUMB_DOWN   0x5821

Definition at line 77 of file xinput.h.

#define VK_PAD_LTHUMB_DOWNLEFT   0x5827

Definition at line 83 of file xinput.h.

#define VK_PAD_LTHUMB_DOWNRIGHT   0x5826

Definition at line 82 of file xinput.h.

#define VK_PAD_LTHUMB_LEFT   0x5823

Definition at line 79 of file xinput.h.

#define VK_PAD_LTHUMB_PRESS   0x5816

Definition at line 74 of file xinput.h.

#define VK_PAD_LTHUMB_RIGHT   0x5822

Definition at line 78 of file xinput.h.

#define VK_PAD_LTHUMB_UP   0x5820

Definition at line 76 of file xinput.h.

#define VK_PAD_LTHUMB_UPLEFT   0x5824

Definition at line 80 of file xinput.h.

#define VK_PAD_LTHUMB_UPRIGHT   0x5825

Definition at line 81 of file xinput.h.

#define VK_PAD_LTRIGGER   0x5806

Definition at line 66 of file xinput.h.

#define VK_PAD_RSHOULDER   0x5804

Definition at line 64 of file xinput.h.

#define VK_PAD_RTHUMB_DOWN   0x5831

Definition at line 85 of file xinput.h.

#define VK_PAD_RTHUMB_DOWNLEFT   0x5837

Definition at line 91 of file xinput.h.

#define VK_PAD_RTHUMB_DOWNRIGHT   0x5836

Definition at line 90 of file xinput.h.

#define VK_PAD_RTHUMB_LEFT   0x5833

Definition at line 87 of file xinput.h.

#define VK_PAD_RTHUMB_PRESS   0x5817

Definition at line 75 of file xinput.h.

#define VK_PAD_RTHUMB_RIGHT   0x5832

Definition at line 86 of file xinput.h.

#define VK_PAD_RTHUMB_UP   0x5830

Definition at line 84 of file xinput.h.

#define VK_PAD_RTHUMB_UPLEFT   0x5834

Definition at line 88 of file xinput.h.

#define VK_PAD_RTHUMB_UPRIGHT   0x5835

Definition at line 89 of file xinput.h.

#define VK_PAD_RTRIGGER   0x5807

Definition at line 67 of file xinput.h.

#define VK_PAD_START   0x5814

Definition at line 72 of file xinput.h.

#define VK_PAD_X   0x5802

Definition at line 62 of file xinput.h.

#define VK_PAD_Y   0x5803

Definition at line 63 of file xinput.h.

#define XINPUT_CAPS_VOICE_SUPPORTED   0x0004

Definition at line 128 of file xinput.h.

#define XINPUT_DEVSUBTYPE_ARCADE_STICK   0x03

Definition at line 116 of file xinput.h.

#define XINPUT_DEVSUBTYPE_DANCE_PAD   0x05

Definition at line 118 of file xinput.h.

#define XINPUT_DEVSUBTYPE_DRUM_KIT   0x08

Definition at line 120 of file xinput.h.

#define XINPUT_DEVSUBTYPE_FLIGHT_SICK   0x04

Definition at line 117 of file xinput.h.

#define XINPUT_DEVSUBTYPE_GAMEPAD   0x01

Definition at line 114 of file xinput.h.

#define XINPUT_DEVSUBTYPE_GUITAR   0x06

Definition at line 119 of file xinput.h.

#define XINPUT_DEVSUBTYPE_WHEEL   0x02

Definition at line 115 of file xinput.h.

#define XINPUT_DEVTYPE_GAMEPAD   0x01

Definition at line 113 of file xinput.h.

#define XINPUT_FLAG_GAMEPAD   0x00000001

Definition at line 129 of file xinput.h.

#define XINPUT_GAMEPAD_A   0x1000

Definition at line 42 of file xinput.h.

#define XINPUT_GAMEPAD_B   0x2000

Definition at line 43 of file xinput.h.

#define XINPUT_GAMEPAD_BACK   0x0020

Definition at line 37 of file xinput.h.

#define XINPUT_GAMEPAD_DPAD_DOWN   0x0002

Definition at line 33 of file xinput.h.

#define XINPUT_GAMEPAD_DPAD_LEFT   0x0004

Definition at line 34 of file xinput.h.

#define XINPUT_GAMEPAD_DPAD_RIGHT   0x0008

Definition at line 35 of file xinput.h.

#define XINPUT_GAMEPAD_DPAD_UP   0x0001

Definition at line 32 of file xinput.h.

#define XINPUT_GAMEPAD_LEFT_SHOULDER   0x0100

Definition at line 40 of file xinput.h.

#define XINPUT_GAMEPAD_LEFT_THUMB   0x0040

Definition at line 38 of file xinput.h.

#define XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE   7849

Definition at line 101 of file xinput.h.

#define XINPUT_GAMEPAD_RIGHT_SHOULDER   0x0200

Definition at line 41 of file xinput.h.

#define XINPUT_GAMEPAD_RIGHT_THUMB   0x0080

Definition at line 39 of file xinput.h.

#define XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE   8689

Definition at line 102 of file xinput.h.

#define XINPUT_GAMEPAD_START   0x0010

Definition at line 36 of file xinput.h.

#define XINPUT_GAMEPAD_TRIGGER_THRESHOLD   30

Definition at line 103 of file xinput.h.

#define XINPUT_GAMEPAD_X   0x4000

Definition at line 44 of file xinput.h.

#define XINPUT_GAMEPAD_Y   0x8000

Definition at line 45 of file xinput.h.

#define XINPUT_KEYSTROKE_KEYDOWN   0x0001

Definition at line 52 of file xinput.h.

#define XINPUT_KEYSTROKE_KEYUP   0x0002

Definition at line 53 of file xinput.h.

#define XINPUT_KEYSTROKE_REPEAT   0x0004

Definition at line 54 of file xinput.h.

#define XUSER_INDEX_ANY   0x000000FF

Definition at line 157 of file xinput.h.

#define XUSER_MAX_COUNT   4

Definition at line 156 of file xinput.h.

Typedef Documentation

typedef struct _XINPUT_GAMEPAD * PXINPUT_GAMEPAD
typedef struct _XINPUT_STATE * PXINPUT_STATE
typedef struct _XINPUT_STATE XINPUT_STATE

Function Documentation

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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31