[1166] | 1 | /*
|
---|
| 2 | * Copyright (C) the Wine project
|
---|
| 3 | *
|
---|
| 4 | * This library is free software; you can redistribute it and/or
|
---|
| 5 | * modify it under the terms of the GNU Lesser General Public
|
---|
| 6 | * License as published by the Free Software Foundation; either
|
---|
| 7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
| 8 | *
|
---|
| 9 | * This library is distributed in the hope that it will be useful,
|
---|
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 12 | * Lesser General Public License for more details.
|
---|
| 13 | *
|
---|
| 14 | * You should have received a copy of the GNU Lesser General Public
|
---|
| 15 | * License along with this library; if not, write to the Free Software
|
---|
| 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
| 17 | */
|
---|
| 18 |
|
---|
| 19 | #ifndef __DINPUT_INCLUDED__
|
---|
| 20 | #define __DINPUT_INCLUDED__
|
---|
| 21 |
|
---|
| 22 | #define COM_NO_WINDOWS_H
|
---|
| 23 | #include <objbase.h>
|
---|
| 24 | #include <_mingw_dxhelper.h>
|
---|
| 25 |
|
---|
| 26 | #define DIRECTINPUT_HEADER_VERSION 0x0800
|
---|
| 27 | #ifndef DIRECTINPUT_VERSION
|
---|
| 28 | #define DIRECTINPUT_VERSION 0x0800
|
---|
| 29 | #endif
|
---|
| 30 |
|
---|
| 31 | /* Classes */
|
---|
| 32 | DEFINE_GUID(CLSID_DirectInput, 0x25E609E0,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 33 | DEFINE_GUID(CLSID_DirectInputDevice, 0x25E609E1,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 34 |
|
---|
| 35 | DEFINE_GUID(CLSID_DirectInput8, 0x25E609E4,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 36 | DEFINE_GUID(CLSID_DirectInputDevice8, 0x25E609E5,0xB259,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 37 |
|
---|
| 38 | /* Interfaces */
|
---|
| 39 | DEFINE_GUID(IID_IDirectInputA, 0x89521360,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 40 | DEFINE_GUID(IID_IDirectInputW, 0x89521361,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 41 | DEFINE_GUID(IID_IDirectInput2A, 0x5944E662,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 42 | DEFINE_GUID(IID_IDirectInput2W, 0x5944E663,0xAA8A,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 43 | DEFINE_GUID(IID_IDirectInput7A, 0x9A4CB684,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
|
---|
| 44 | DEFINE_GUID(IID_IDirectInput7W, 0x9A4CB685,0x236D,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
|
---|
| 45 | DEFINE_GUID(IID_IDirectInput8A, 0xBF798030,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00);
|
---|
| 46 | DEFINE_GUID(IID_IDirectInput8W, 0xBF798031,0x483A,0x4DA2,0xAA,0x99,0x5D,0x64,0xED,0x36,0x97,0x00);
|
---|
| 47 | DEFINE_GUID(IID_IDirectInputDeviceA, 0x5944E680,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 48 | DEFINE_GUID(IID_IDirectInputDeviceW, 0x5944E681,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 49 | DEFINE_GUID(IID_IDirectInputDevice2A, 0x5944E682,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 50 | DEFINE_GUID(IID_IDirectInputDevice2W, 0x5944E683,0xC92E,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 51 | DEFINE_GUID(IID_IDirectInputDevice7A, 0x57D7C6BC,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
|
---|
| 52 | DEFINE_GUID(IID_IDirectInputDevice7W, 0x57D7C6BD,0x2356,0x11D3,0x8E,0x9D,0x00,0xC0,0x4F,0x68,0x44,0xAE);
|
---|
| 53 | DEFINE_GUID(IID_IDirectInputDevice8A, 0x54D41080,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79);
|
---|
| 54 | DEFINE_GUID(IID_IDirectInputDevice8W, 0x54D41081,0xDC15,0x4833,0xA4,0x1B,0x74,0x8F,0x73,0xA3,0x81,0x79);
|
---|
| 55 | DEFINE_GUID(IID_IDirectInputEffect, 0xE7E1F7C0,0x88D2,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 56 |
|
---|
| 57 | /* Predefined object types */
|
---|
| 58 | DEFINE_GUID(GUID_XAxis, 0xA36D02E0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 59 | DEFINE_GUID(GUID_YAxis, 0xA36D02E1,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 60 | DEFINE_GUID(GUID_ZAxis, 0xA36D02E2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 61 | DEFINE_GUID(GUID_RxAxis,0xA36D02F4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 62 | DEFINE_GUID(GUID_RyAxis,0xA36D02F5,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 63 | DEFINE_GUID(GUID_RzAxis,0xA36D02E3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 64 | DEFINE_GUID(GUID_Slider,0xA36D02E4,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 65 | DEFINE_GUID(GUID_Button,0xA36D02F0,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 66 | DEFINE_GUID(GUID_Key, 0x55728220,0xD33C,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 67 | DEFINE_GUID(GUID_POV, 0xA36D02F2,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 68 | DEFINE_GUID(GUID_Unknown,0xA36D02F3,0xC9F3,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 69 |
|
---|
| 70 | /* Predefined product GUIDs */
|
---|
| 71 | DEFINE_GUID(GUID_SysMouse, 0x6F1D2B60,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 72 | DEFINE_GUID(GUID_SysKeyboard, 0x6F1D2B61,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 73 | DEFINE_GUID(GUID_Joystick, 0x6F1D2B70,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 74 | DEFINE_GUID(GUID_SysMouseEm, 0x6F1D2B80,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 75 | DEFINE_GUID(GUID_SysMouseEm2, 0x6F1D2B81,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 76 | DEFINE_GUID(GUID_SysKeyboardEm, 0x6F1D2B82,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 77 | DEFINE_GUID(GUID_SysKeyboardEm2,0x6F1D2B83,0xD5A0,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
|
---|
| 78 |
|
---|
| 79 | /* predefined forcefeedback effects */
|
---|
| 80 | DEFINE_GUID(GUID_ConstantForce, 0x13541C20,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 81 | DEFINE_GUID(GUID_RampForce, 0x13541C21,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 82 | DEFINE_GUID(GUID_Square, 0x13541C22,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 83 | DEFINE_GUID(GUID_Sine, 0x13541C23,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 84 | DEFINE_GUID(GUID_Triangle, 0x13541C24,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 85 | DEFINE_GUID(GUID_SawtoothUp, 0x13541C25,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 86 | DEFINE_GUID(GUID_SawtoothDown, 0x13541C26,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 87 | DEFINE_GUID(GUID_Spring, 0x13541C27,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 88 | DEFINE_GUID(GUID_Damper, 0x13541C28,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 89 | DEFINE_GUID(GUID_Inertia, 0x13541C29,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 90 | DEFINE_GUID(GUID_Friction, 0x13541C2A,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 91 | DEFINE_GUID(GUID_CustomForce, 0x13541C2B,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
|
---|
| 92 |
|
---|
| 93 | typedef struct IDirectInputA *LPDIRECTINPUTA;
|
---|
| 94 | typedef struct IDirectInputW *LPDIRECTINPUTW;
|
---|
| 95 | typedef struct IDirectInput2A *LPDIRECTINPUT2A;
|
---|
| 96 | typedef struct IDirectInput2W *LPDIRECTINPUT2W;
|
---|
| 97 | typedef struct IDirectInput7A *LPDIRECTINPUT7A;
|
---|
| 98 | typedef struct IDirectInput7W *LPDIRECTINPUT7W;
|
---|
| 99 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 100 | typedef struct IDirectInput8A *LPDIRECTINPUT8A;
|
---|
| 101 | typedef struct IDirectInput8W *LPDIRECTINPUT8W;
|
---|
| 102 | #endif /* DI8 */
|
---|
| 103 | typedef struct IDirectInputDeviceA *LPDIRECTINPUTDEVICEA;
|
---|
| 104 | typedef struct IDirectInputDeviceW *LPDIRECTINPUTDEVICEW;
|
---|
| 105 | #if DIRECTINPUT_VERSION >= 0x0500
|
---|
| 106 | typedef struct IDirectInputDevice2A *LPDIRECTINPUTDEVICE2A;
|
---|
| 107 | typedef struct IDirectInputDevice2W *LPDIRECTINPUTDEVICE2W;
|
---|
| 108 | #endif /* DI5 */
|
---|
| 109 | #if DIRECTINPUT_VERSION >= 0x0700
|
---|
| 110 | typedef struct IDirectInputDevice7A *LPDIRECTINPUTDEVICE7A;
|
---|
| 111 | typedef struct IDirectInputDevice7W *LPDIRECTINPUTDEVICE7W;
|
---|
| 112 | #endif /* DI7 */
|
---|
| 113 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 114 | typedef struct IDirectInputDevice8A *LPDIRECTINPUTDEVICE8A;
|
---|
| 115 | typedef struct IDirectInputDevice8W *LPDIRECTINPUTDEVICE8W;
|
---|
| 116 | #endif /* DI8 */
|
---|
| 117 | #if DIRECTINPUT_VERSION >= 0x0500
|
---|
| 118 | typedef struct IDirectInputEffect *LPDIRECTINPUTEFFECT;
|
---|
| 119 | #endif /* DI5 */
|
---|
| 120 | typedef struct SysKeyboardA *LPSYSKEYBOARDA;
|
---|
| 121 | typedef struct SysMouseA *LPSYSMOUSEA;
|
---|
| 122 |
|
---|
| 123 | #define IID_IDirectInput WINELIB_NAME_AW(IID_IDirectInput)
|
---|
| 124 | #define IDirectInput WINELIB_NAME_AW(IDirectInput)
|
---|
| 125 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUT)
|
---|
| 126 | #define IID_IDirectInput2 WINELIB_NAME_AW(IID_IDirectInput2)
|
---|
| 127 | #define IDirectInput2 WINELIB_NAME_AW(IDirectInput2)
|
---|
| 128 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUT2)
|
---|
| 129 | #define IID_IDirectInput7 WINELIB_NAME_AW(IID_IDirectInput7)
|
---|
| 130 | #define IDirectInput7 WINELIB_NAME_AW(IDirectInput7)
|
---|
| 131 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUT7)
|
---|
| 132 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 133 | #define IID_IDirectInput8 WINELIB_NAME_AW(IID_IDirectInput8)
|
---|
| 134 | #define IDirectInput8 WINELIB_NAME_AW(IDirectInput8)
|
---|
| 135 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUT8)
|
---|
| 136 | #endif /* DI8 */
|
---|
| 137 | #define IID_IDirectInputDevice WINELIB_NAME_AW(IID_IDirectInputDevice)
|
---|
| 138 | #define IDirectInputDevice WINELIB_NAME_AW(IDirectInputDevice)
|
---|
| 139 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE)
|
---|
| 140 | #if DIRECTINPUT_VERSION >= 0x0500
|
---|
| 141 | #define IID_IDirectInputDevice2 WINELIB_NAME_AW(IID_IDirectInputDevice2)
|
---|
| 142 | #define IDirectInputDevice2 WINELIB_NAME_AW(IDirectInputDevice2)
|
---|
| 143 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE2)
|
---|
| 144 | #endif /* DI5 */
|
---|
| 145 | #if DIRECTINPUT_VERSION >= 0x0700
|
---|
| 146 | #define IID_IDirectInputDevice7 WINELIB_NAME_AW(IID_IDirectInputDevice7)
|
---|
| 147 | #define IDirectInputDevice7 WINELIB_NAME_AW(IDirectInputDevice7)
|
---|
| 148 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE7)
|
---|
| 149 | #endif /* DI7 */
|
---|
| 150 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 151 | #define IID_IDirectInputDevice8 WINELIB_NAME_AW(IID_IDirectInputDevice8)
|
---|
| 152 | #define IDirectInputDevice8 WINELIB_NAME_AW(IDirectInputDevice8)
|
---|
| 153 | DECL_WINELIB_TYPE_AW(LPDIRECTINPUTDEVICE8)
|
---|
| 154 | #endif /* DI8 */
|
---|
| 155 |
|
---|
| 156 | #define DI_OK S_OK
|
---|
| 157 | #define DI_NOTATTACHED S_FALSE
|
---|
| 158 | #define DI_BUFFEROVERFLOW S_FALSE
|
---|
| 159 | #define DI_PROPNOEFFECT S_FALSE
|
---|
| 160 | #define DI_NOEFFECT S_FALSE
|
---|
| 161 | #define DI_POLLEDDEVICE ((HRESULT)0x00000002L)
|
---|
| 162 | #define DI_DOWNLOADSKIPPED ((HRESULT)0x00000003L)
|
---|
| 163 | #define DI_EFFECTRESTARTED ((HRESULT)0x00000004L)
|
---|
| 164 | #define DI_TRUNCATED ((HRESULT)0x00000008L)
|
---|
| 165 | #define DI_SETTINGSNOTSAVED ((HRESULT)0x0000000BL)
|
---|
| 166 | #define DI_TRUNCATEDANDRESTARTED ((HRESULT)0x0000000CL)
|
---|
| 167 | #define DI_WRITEPROTECT ((HRESULT)0x00000013L)
|
---|
| 168 |
|
---|
| 169 | #define DIERR_OLDDIRECTINPUTVERSION \
|
---|
| 170 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_OLD_WIN_VERSION)
|
---|
| 171 | #define DIERR_BETADIRECTINPUTVERSION \
|
---|
| 172 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_RMODE_APP)
|
---|
| 173 | #define DIERR_BADDRIVERVER \
|
---|
| 174 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BAD_DRIVER_LEVEL)
|
---|
| 175 | #define DIERR_DEVICENOTREG REGDB_E_CLASSNOTREG
|
---|
| 176 | #define DIERR_NOTFOUND \
|
---|
| 177 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND)
|
---|
| 178 | #define DIERR_OBJECTNOTFOUND \
|
---|
| 179 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_FILE_NOT_FOUND)
|
---|
| 180 | #define DIERR_INVALIDPARAM E_INVALIDARG
|
---|
| 181 | #define DIERR_NOINTERFACE E_NOINTERFACE
|
---|
| 182 | #define DIERR_GENERIC E_FAIL
|
---|
| 183 | #define DIERR_OUTOFMEMORY E_OUTOFMEMORY
|
---|
| 184 | #define DIERR_UNSUPPORTED E_NOTIMPL
|
---|
| 185 | #define DIERR_NOTINITIALIZED \
|
---|
| 186 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NOT_READY)
|
---|
| 187 | #define DIERR_ALREADYINITIALIZED \
|
---|
| 188 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_ALREADY_INITIALIZED)
|
---|
| 189 | #define DIERR_NOAGGREGATION CLASS_E_NOAGGREGATION
|
---|
| 190 | #define DIERR_OTHERAPPHASPRIO E_ACCESSDENIED
|
---|
| 191 | #define DIERR_INPUTLOST \
|
---|
| 192 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_READ_FAULT)
|
---|
| 193 | #define DIERR_ACQUIRED \
|
---|
| 194 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_BUSY)
|
---|
| 195 | #define DIERR_NOTACQUIRED \
|
---|
| 196 | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_INVALID_ACCESS)
|
---|
| 197 | #define DIERR_READONLY E_ACCESSDENIED
|
---|
| 198 | #define DIERR_HANDLEEXISTS E_ACCESSDENIED
|
---|
| 199 | #ifndef E_PENDING
|
---|
| 200 | #define E_PENDING 0x8000000AL
|
---|
| 201 | #endif
|
---|
| 202 | #define DIERR_INSUFFICIENTPRIVS 0x80040200L
|
---|
| 203 | #define DIERR_DEVICEFULL 0x80040201L
|
---|
| 204 | #define DIERR_MOREDATA 0x80040202L
|
---|
| 205 | #define DIERR_NOTDOWNLOADED 0x80040203L
|
---|
| 206 | #define DIERR_HASEFFECTS 0x80040204L
|
---|
| 207 | #define DIERR_NOTEXCLUSIVEACQUIRED 0x80040205L
|
---|
| 208 | #define DIERR_INCOMPLETEEFFECT 0x80040206L
|
---|
| 209 | #define DIERR_NOTBUFFERED 0x80040207L
|
---|
| 210 | #define DIERR_EFFECTPLAYING 0x80040208L
|
---|
| 211 | #define DIERR_UNPLUGGED 0x80040209L
|
---|
| 212 | #define DIERR_REPORTFULL 0x8004020AL
|
---|
| 213 | #define DIERR_MAPFILEFAIL 0x8004020BL
|
---|
| 214 |
|
---|
| 215 | #define DIENUM_STOP 0
|
---|
| 216 | #define DIENUM_CONTINUE 1
|
---|
| 217 |
|
---|
| 218 | #define DIEDFL_ALLDEVICES 0x00000000
|
---|
| 219 | #define DIEDFL_ATTACHEDONLY 0x00000001
|
---|
| 220 | #define DIEDFL_FORCEFEEDBACK 0x00000100
|
---|
| 221 | #define DIEDFL_INCLUDEALIASES 0x00010000
|
---|
| 222 | #define DIEDFL_INCLUDEPHANTOMS 0x00020000
|
---|
| 223 | #define DIEDFL_INCLUDEHIDDEN 0x00040000
|
---|
| 224 |
|
---|
| 225 | #define DIDEVTYPE_DEVICE 1
|
---|
| 226 | #define DIDEVTYPE_MOUSE 2
|
---|
| 227 | #define DIDEVTYPE_KEYBOARD 3
|
---|
| 228 | #define DIDEVTYPE_JOYSTICK 4
|
---|
| 229 | #define DIDEVTYPE_HID 0x00010000
|
---|
| 230 |
|
---|
| 231 | #define DI8DEVCLASS_ALL 0
|
---|
| 232 | #define DI8DEVCLASS_DEVICE 1
|
---|
| 233 | #define DI8DEVCLASS_POINTER 2
|
---|
| 234 | #define DI8DEVCLASS_KEYBOARD 3
|
---|
| 235 | #define DI8DEVCLASS_GAMECTRL 4
|
---|
| 236 |
|
---|
| 237 | #define DI8DEVTYPE_DEVICE 0x11
|
---|
| 238 | #define DI8DEVTYPE_MOUSE 0x12
|
---|
| 239 | #define DI8DEVTYPE_KEYBOARD 0x13
|
---|
| 240 | #define DI8DEVTYPE_JOYSTICK 0x14
|
---|
| 241 | #define DI8DEVTYPE_GAMEPAD 0x15
|
---|
| 242 | #define DI8DEVTYPE_DRIVING 0x16
|
---|
| 243 | #define DI8DEVTYPE_FLIGHT 0x17
|
---|
| 244 | #define DI8DEVTYPE_1STPERSON 0x18
|
---|
| 245 | #define DI8DEVTYPE_DEVICECTRL 0x19
|
---|
| 246 | #define DI8DEVTYPE_SCREENPOINTER 0x1A
|
---|
| 247 | #define DI8DEVTYPE_REMOTE 0x1B
|
---|
| 248 | #define DI8DEVTYPE_SUPPLEMENTAL 0x1C
|
---|
| 249 |
|
---|
| 250 | #define DIDEVTYPEMOUSE_UNKNOWN 1
|
---|
| 251 | #define DIDEVTYPEMOUSE_TRADITIONAL 2
|
---|
| 252 | #define DIDEVTYPEMOUSE_FINGERSTICK 3
|
---|
| 253 | #define DIDEVTYPEMOUSE_TOUCHPAD 4
|
---|
| 254 | #define DIDEVTYPEMOUSE_TRACKBALL 5
|
---|
| 255 |
|
---|
| 256 | #define DIDEVTYPEKEYBOARD_UNKNOWN 0
|
---|
| 257 | #define DIDEVTYPEKEYBOARD_PCXT 1
|
---|
| 258 | #define DIDEVTYPEKEYBOARD_OLIVETTI 2
|
---|
| 259 | #define DIDEVTYPEKEYBOARD_PCAT 3
|
---|
| 260 | #define DIDEVTYPEKEYBOARD_PCENH 4
|
---|
| 261 | #define DIDEVTYPEKEYBOARD_NOKIA1050 5
|
---|
| 262 | #define DIDEVTYPEKEYBOARD_NOKIA9140 6
|
---|
| 263 | #define DIDEVTYPEKEYBOARD_NEC98 7
|
---|
| 264 | #define DIDEVTYPEKEYBOARD_NEC98LAPTOP 8
|
---|
| 265 | #define DIDEVTYPEKEYBOARD_NEC98106 9
|
---|
| 266 | #define DIDEVTYPEKEYBOARD_JAPAN106 10
|
---|
| 267 | #define DIDEVTYPEKEYBOARD_JAPANAX 11
|
---|
| 268 | #define DIDEVTYPEKEYBOARD_J3100 12
|
---|
| 269 |
|
---|
| 270 | #define DIDEVTYPEJOYSTICK_UNKNOWN 1
|
---|
| 271 | #define DIDEVTYPEJOYSTICK_TRADITIONAL 2
|
---|
| 272 | #define DIDEVTYPEJOYSTICK_FLIGHTSTICK 3
|
---|
| 273 | #define DIDEVTYPEJOYSTICK_GAMEPAD 4
|
---|
| 274 | #define DIDEVTYPEJOYSTICK_RUDDER 5
|
---|
| 275 | #define DIDEVTYPEJOYSTICK_WHEEL 6
|
---|
| 276 | #define DIDEVTYPEJOYSTICK_HEADTRACKER 7
|
---|
| 277 |
|
---|
| 278 | #define DI8DEVTYPEMOUSE_UNKNOWN 1
|
---|
| 279 | #define DI8DEVTYPEMOUSE_TRADITIONAL 2
|
---|
| 280 | #define DI8DEVTYPEMOUSE_FINGERSTICK 3
|
---|
| 281 | #define DI8DEVTYPEMOUSE_TOUCHPAD 4
|
---|
| 282 | #define DI8DEVTYPEMOUSE_TRACKBALL 5
|
---|
| 283 | #define DI8DEVTYPEMOUSE_ABSOLUTE 6
|
---|
| 284 |
|
---|
| 285 | #define DI8DEVTYPEKEYBOARD_UNKNOWN 0
|
---|
| 286 | #define DI8DEVTYPEKEYBOARD_PCXT 1
|
---|
| 287 | #define DI8DEVTYPEKEYBOARD_OLIVETTI 2
|
---|
| 288 | #define DI8DEVTYPEKEYBOARD_PCAT 3
|
---|
| 289 | #define DI8DEVTYPEKEYBOARD_PCENH 4
|
---|
| 290 | #define DI8DEVTYPEKEYBOARD_NOKIA1050 5
|
---|
| 291 | #define DI8DEVTYPEKEYBOARD_NOKIA9140 6
|
---|
| 292 | #define DI8DEVTYPEKEYBOARD_NEC98 7
|
---|
| 293 | #define DI8DEVTYPEKEYBOARD_NEC98LAPTOP 8
|
---|
| 294 | #define DI8DEVTYPEKEYBOARD_NEC98106 9
|
---|
| 295 | #define DI8DEVTYPEKEYBOARD_JAPAN106 10
|
---|
| 296 | #define DI8DEVTYPEKEYBOARD_JAPANAX 11
|
---|
| 297 | #define DI8DEVTYPEKEYBOARD_J3100 12
|
---|
| 298 |
|
---|
| 299 | #define DI8DEVTYPE_LIMITEDGAMESUBTYPE 1
|
---|
| 300 |
|
---|
| 301 | #define DI8DEVTYPEJOYSTICK_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
| 302 | #define DI8DEVTYPEJOYSTICK_STANDARD 2
|
---|
| 303 |
|
---|
| 304 | #define DI8DEVTYPEGAMEPAD_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
| 305 | #define DI8DEVTYPEGAMEPAD_STANDARD 2
|
---|
| 306 | #define DI8DEVTYPEGAMEPAD_TILT 3
|
---|
| 307 |
|
---|
| 308 | #define DI8DEVTYPEDRIVING_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
| 309 | #define DI8DEVTYPEDRIVING_COMBINEDPEDALS 2
|
---|
| 310 | #define DI8DEVTYPEDRIVING_DUALPEDALS 3
|
---|
| 311 | #define DI8DEVTYPEDRIVING_THREEPEDALS 4
|
---|
| 312 | #define DI8DEVTYPEDRIVING_HANDHELD 5
|
---|
| 313 |
|
---|
| 314 | #define DI8DEVTYPEFLIGHT_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
| 315 | #define DI8DEVTYPEFLIGHT_STICK 2
|
---|
| 316 | #define DI8DEVTYPEFLIGHT_YOKE 3
|
---|
| 317 | #define DI8DEVTYPEFLIGHT_RC 4
|
---|
| 318 |
|
---|
| 319 | #define DI8DEVTYPE1STPERSON_LIMITED DI8DEVTYPE_LIMITEDGAMESUBTYPE
|
---|
| 320 | #define DI8DEVTYPE1STPERSON_UNKNOWN 2
|
---|
| 321 | #define DI8DEVTYPE1STPERSON_SIXDOF 3
|
---|
| 322 | #define DI8DEVTYPE1STPERSON_SHOOTER 4
|
---|
| 323 |
|
---|
| 324 | #define DI8DEVTYPESCREENPTR_UNKNOWN 2
|
---|
| 325 | #define DI8DEVTYPESCREENPTR_LIGHTGUN 3
|
---|
| 326 | #define DI8DEVTYPESCREENPTR_LIGHTPEN 4
|
---|
| 327 | #define DI8DEVTYPESCREENPTR_TOUCH 5
|
---|
| 328 |
|
---|
| 329 | #define DI8DEVTYPEREMOTE_UNKNOWN 2
|
---|
| 330 |
|
---|
| 331 | #define DI8DEVTYPEDEVICECTRL_UNKNOWN 2
|
---|
| 332 | #define DI8DEVTYPEDEVICECTRL_COMMSSELECTION 3
|
---|
| 333 | #define DI8DEVTYPEDEVICECTRL_COMMSSELECTION_HARDWIRED 4
|
---|
| 334 |
|
---|
| 335 | #define DI8DEVTYPESUPPLEMENTAL_UNKNOWN 2
|
---|
| 336 | #define DI8DEVTYPESUPPLEMENTAL_2NDHANDCONTROLLER 3
|
---|
| 337 | #define DI8DEVTYPESUPPLEMENTAL_HEADTRACKER 4
|
---|
| 338 | #define DI8DEVTYPESUPPLEMENTAL_HANDTRACKER 5
|
---|
| 339 | #define DI8DEVTYPESUPPLEMENTAL_SHIFTSTICKGATE 6
|
---|
| 340 | #define DI8DEVTYPESUPPLEMENTAL_SHIFTER 7
|
---|
| 341 | #define DI8DEVTYPESUPPLEMENTAL_THROTTLE 8
|
---|
| 342 | #define DI8DEVTYPESUPPLEMENTAL_SPLITTHROTTLE 9
|
---|
| 343 | #define DI8DEVTYPESUPPLEMENTAL_COMBINEDPEDALS 10
|
---|
| 344 | #define DI8DEVTYPESUPPLEMENTAL_DUALPEDALS 11
|
---|
| 345 | #define DI8DEVTYPESUPPLEMENTAL_THREEPEDALS 12
|
---|
| 346 | #define DI8DEVTYPESUPPLEMENTAL_RUDDERPEDALS 13
|
---|
| 347 |
|
---|
| 348 | #define GET_DIDEVICE_TYPE(dwDevType) LOBYTE(dwDevType)
|
---|
| 349 | #define GET_DIDEVICE_SUBTYPE(dwDevType) HIBYTE(dwDevType)
|
---|
| 350 |
|
---|
| 351 | typedef struct DIDEVICEOBJECTINSTANCE_DX3A {
|
---|
| 352 | DWORD dwSize;
|
---|
| 353 | GUID guidType;
|
---|
| 354 | DWORD dwOfs;
|
---|
| 355 | DWORD dwType;
|
---|
| 356 | DWORD dwFlags;
|
---|
| 357 | CHAR tszName[MAX_PATH];
|
---|
| 358 | } DIDEVICEOBJECTINSTANCE_DX3A, *LPDIDEVICEOBJECTINSTANCE_DX3A;
|
---|
| 359 | typedef const DIDEVICEOBJECTINSTANCE_DX3A *LPCDIDEVICEOBJECTINSTANCE_DX3A;
|
---|
| 360 | typedef struct DIDEVICEOBJECTINSTANCE_DX3W {
|
---|
| 361 | DWORD dwSize;
|
---|
| 362 | GUID guidType;
|
---|
| 363 | DWORD dwOfs;
|
---|
| 364 | DWORD dwType;
|
---|
| 365 | DWORD dwFlags;
|
---|
| 366 | WCHAR tszName[MAX_PATH];
|
---|
| 367 | } DIDEVICEOBJECTINSTANCE_DX3W, *LPDIDEVICEOBJECTINSTANCE_DX3W;
|
---|
| 368 | typedef const DIDEVICEOBJECTINSTANCE_DX3W *LPCDIDEVICEOBJECTINSTANCE_DX3W;
|
---|
| 369 |
|
---|
| 370 | DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE_DX3)
|
---|
| 371 | DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE_DX3)
|
---|
| 372 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE_DX3)
|
---|
| 373 |
|
---|
| 374 | typedef struct DIDEVICEOBJECTINSTANCEA {
|
---|
| 375 | DWORD dwSize;
|
---|
| 376 | GUID guidType;
|
---|
| 377 | DWORD dwOfs;
|
---|
| 378 | DWORD dwType;
|
---|
| 379 | DWORD dwFlags;
|
---|
| 380 | CHAR tszName[MAX_PATH];
|
---|
| 381 | #if(DIRECTINPUT_VERSION >= 0x0500)
|
---|
| 382 | DWORD dwFFMaxForce;
|
---|
| 383 | DWORD dwFFForceResolution;
|
---|
| 384 | WORD wCollectionNumber;
|
---|
| 385 | WORD wDesignatorIndex;
|
---|
| 386 | WORD wUsagePage;
|
---|
| 387 | WORD wUsage;
|
---|
| 388 | DWORD dwDimension;
|
---|
| 389 | WORD wExponent;
|
---|
| 390 | WORD wReportId;
|
---|
| 391 | #endif /* DIRECTINPUT_VERSION >= 0x0500 */
|
---|
| 392 | } DIDEVICEOBJECTINSTANCEA, *LPDIDEVICEOBJECTINSTANCEA;
|
---|
| 393 | typedef const DIDEVICEOBJECTINSTANCEA *LPCDIDEVICEOBJECTINSTANCEA;
|
---|
| 394 |
|
---|
| 395 | typedef struct DIDEVICEOBJECTINSTANCEW {
|
---|
| 396 | DWORD dwSize;
|
---|
| 397 | GUID guidType;
|
---|
| 398 | DWORD dwOfs;
|
---|
| 399 | DWORD dwType;
|
---|
| 400 | DWORD dwFlags;
|
---|
| 401 | WCHAR tszName[MAX_PATH];
|
---|
| 402 | #if(DIRECTINPUT_VERSION >= 0x0500)
|
---|
| 403 | DWORD dwFFMaxForce;
|
---|
| 404 | DWORD dwFFForceResolution;
|
---|
| 405 | WORD wCollectionNumber;
|
---|
| 406 | WORD wDesignatorIndex;
|
---|
| 407 | WORD wUsagePage;
|
---|
| 408 | WORD wUsage;
|
---|
| 409 | DWORD dwDimension;
|
---|
| 410 | WORD wExponent;
|
---|
| 411 | WORD wReportId;
|
---|
| 412 | #endif /* DIRECTINPUT_VERSION >= 0x0500 */
|
---|
| 413 | } DIDEVICEOBJECTINSTANCEW, *LPDIDEVICEOBJECTINSTANCEW;
|
---|
| 414 | typedef const DIDEVICEOBJECTINSTANCEW *LPCDIDEVICEOBJECTINSTANCEW;
|
---|
| 415 |
|
---|
| 416 | DECL_WINELIB_TYPE_AW(DIDEVICEOBJECTINSTANCE)
|
---|
| 417 | DECL_WINELIB_TYPE_AW(LPDIDEVICEOBJECTINSTANCE)
|
---|
| 418 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEOBJECTINSTANCE)
|
---|
| 419 |
|
---|
| 420 | typedef struct DIDEVICEINSTANCE_DX3A {
|
---|
| 421 | DWORD dwSize;
|
---|
| 422 | GUID guidInstance;
|
---|
| 423 | GUID guidProduct;
|
---|
| 424 | DWORD dwDevType;
|
---|
| 425 | CHAR tszInstanceName[MAX_PATH];
|
---|
| 426 | CHAR tszProductName[MAX_PATH];
|
---|
| 427 | } DIDEVICEINSTANCE_DX3A, *LPDIDEVICEINSTANCE_DX3A;
|
---|
| 428 | typedef const DIDEVICEINSTANCE_DX3A *LPCDIDEVICEINSTANCE_DX3A;
|
---|
| 429 | typedef struct DIDEVICEINSTANCE_DX3W {
|
---|
| 430 | DWORD dwSize;
|
---|
| 431 | GUID guidInstance;
|
---|
| 432 | GUID guidProduct;
|
---|
| 433 | DWORD dwDevType;
|
---|
| 434 | WCHAR tszInstanceName[MAX_PATH];
|
---|
| 435 | WCHAR tszProductName[MAX_PATH];
|
---|
| 436 | } DIDEVICEINSTANCE_DX3W, *LPDIDEVICEINSTANCE_DX3W;
|
---|
| 437 | typedef const DIDEVICEINSTANCE_DX3W *LPCDIDEVICEINSTANCE_DX3W;
|
---|
| 438 |
|
---|
| 439 | DECL_WINELIB_TYPE_AW(DIDEVICEINSTANCE_DX3)
|
---|
| 440 | DECL_WINELIB_TYPE_AW(LPDIDEVICEINSTANCE_DX3)
|
---|
| 441 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEINSTANCE_DX3)
|
---|
| 442 |
|
---|
| 443 | typedef struct DIDEVICEINSTANCEA {
|
---|
| 444 | DWORD dwSize;
|
---|
| 445 | GUID guidInstance;
|
---|
| 446 | GUID guidProduct;
|
---|
| 447 | DWORD dwDevType;
|
---|
| 448 | CHAR tszInstanceName[MAX_PATH];
|
---|
| 449 | CHAR tszProductName[MAX_PATH];
|
---|
| 450 | #if(DIRECTINPUT_VERSION >= 0x0500)
|
---|
| 451 | GUID guidFFDriver;
|
---|
| 452 | WORD wUsagePage;
|
---|
| 453 | WORD wUsage;
|
---|
| 454 | #endif /* DIRECTINPUT_VERSION >= 0x0500 */
|
---|
| 455 | } DIDEVICEINSTANCEA, *LPDIDEVICEINSTANCEA;
|
---|
| 456 | typedef const DIDEVICEINSTANCEA *LPCDIDEVICEINSTANCEA;
|
---|
| 457 |
|
---|
| 458 | typedef struct DIDEVICEINSTANCEW {
|
---|
| 459 | DWORD dwSize;
|
---|
| 460 | GUID guidInstance;
|
---|
| 461 | GUID guidProduct;
|
---|
| 462 | DWORD dwDevType;
|
---|
| 463 | WCHAR tszInstanceName[MAX_PATH];
|
---|
| 464 | WCHAR tszProductName[MAX_PATH];
|
---|
| 465 | #if(DIRECTINPUT_VERSION >= 0x0500)
|
---|
| 466 | GUID guidFFDriver;
|
---|
| 467 | WORD wUsagePage;
|
---|
| 468 | WORD wUsage;
|
---|
| 469 | #endif /* DIRECTINPUT_VERSION >= 0x0500 */
|
---|
| 470 | } DIDEVICEINSTANCEW, *LPDIDEVICEINSTANCEW;
|
---|
| 471 | typedef const DIDEVICEINSTANCEW *LPCDIDEVICEINSTANCEW;
|
---|
| 472 |
|
---|
| 473 | DECL_WINELIB_TYPE_AW(DIDEVICEINSTANCE)
|
---|
| 474 | DECL_WINELIB_TYPE_AW(LPDIDEVICEINSTANCE)
|
---|
| 475 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEINSTANCE)
|
---|
| 476 |
|
---|
| 477 | typedef WINBOOL (CALLBACK *LPDIENUMDEVICESCALLBACKA)(LPCDIDEVICEINSTANCEA,LPVOID);
|
---|
| 478 | typedef WINBOOL (CALLBACK *LPDIENUMDEVICESCALLBACKW)(LPCDIDEVICEINSTANCEW,LPVOID);
|
---|
| 479 | DECL_WINELIB_TYPE_AW(LPDIENUMDEVICESCALLBACK)
|
---|
| 480 |
|
---|
| 481 | #define DIEDBS_MAPPEDPRI1 0x00000001
|
---|
| 482 | #define DIEDBS_MAPPEDPRI2 0x00000002
|
---|
| 483 | #define DIEDBS_RECENTDEVICE 0x00000010
|
---|
| 484 | #define DIEDBS_NEWDEVICE 0x00000020
|
---|
| 485 |
|
---|
| 486 | #define DIEDBSFL_ATTACHEDONLY 0x00000000
|
---|
| 487 | #define DIEDBSFL_THISUSER 0x00000010
|
---|
| 488 | #define DIEDBSFL_FORCEFEEDBACK DIEDFL_FORCEFEEDBACK
|
---|
| 489 | #define DIEDBSFL_AVAILABLEDEVICES 0x00001000
|
---|
| 490 | #define DIEDBSFL_MULTIMICEKEYBOARDS 0x00002000
|
---|
| 491 | #define DIEDBSFL_NONGAMINGDEVICES 0x00004000
|
---|
| 492 | #define DIEDBSFL_VALID 0x00007110
|
---|
| 493 |
|
---|
| 494 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 495 | typedef WINBOOL (CALLBACK *LPDIENUMDEVICESBYSEMANTICSCBA)(LPCDIDEVICEINSTANCEA,LPDIRECTINPUTDEVICE8A,DWORD,DWORD,LPVOID);
|
---|
| 496 | typedef WINBOOL (CALLBACK *LPDIENUMDEVICESBYSEMANTICSCBW)(LPCDIDEVICEINSTANCEW,LPDIRECTINPUTDEVICE8W,DWORD,DWORD,LPVOID);
|
---|
| 497 | DECL_WINELIB_TYPE_AW(LPDIENUMDEVICESBYSEMANTICSCB)
|
---|
| 498 | #endif
|
---|
| 499 |
|
---|
| 500 | typedef WINBOOL (CALLBACK *LPDICONFIGUREDEVICESCALLBACK)(LPUNKNOWN,LPVOID);
|
---|
| 501 |
|
---|
| 502 | typedef WINBOOL (CALLBACK *LPDIENUMDEVICEOBJECTSCALLBACKA)(LPCDIDEVICEOBJECTINSTANCEA,LPVOID);
|
---|
| 503 | typedef WINBOOL (CALLBACK *LPDIENUMDEVICEOBJECTSCALLBACKW)(LPCDIDEVICEOBJECTINSTANCEW,LPVOID);
|
---|
| 504 | DECL_WINELIB_TYPE_AW(LPDIENUMDEVICEOBJECTSCALLBACK)
|
---|
| 505 |
|
---|
| 506 | #if DIRECTINPUT_VERSION >= 0x0500
|
---|
| 507 | typedef WINBOOL (CALLBACK *LPDIENUMCREATEDEFFECTOBJECTSCALLBACK)(LPDIRECTINPUTEFFECT, LPVOID);
|
---|
| 508 | #endif
|
---|
| 509 |
|
---|
| 510 | #define DIK_ESCAPE 0x01
|
---|
| 511 | #define DIK_1 0x02
|
---|
| 512 | #define DIK_2 0x03
|
---|
| 513 | #define DIK_3 0x04
|
---|
| 514 | #define DIK_4 0x05
|
---|
| 515 | #define DIK_5 0x06
|
---|
| 516 | #define DIK_6 0x07
|
---|
| 517 | #define DIK_7 0x08
|
---|
| 518 | #define DIK_8 0x09
|
---|
| 519 | #define DIK_9 0x0A
|
---|
| 520 | #define DIK_0 0x0B
|
---|
| 521 | #define DIK_MINUS 0x0C /* - on main keyboard */
|
---|
| 522 | #define DIK_EQUALS 0x0D
|
---|
| 523 | #define DIK_BACK 0x0E /* backspace */
|
---|
| 524 | #define DIK_TAB 0x0F
|
---|
| 525 | #define DIK_Q 0x10
|
---|
| 526 | #define DIK_W 0x11
|
---|
| 527 | #define DIK_E 0x12
|
---|
| 528 | #define DIK_R 0x13
|
---|
| 529 | #define DIK_T 0x14
|
---|
| 530 | #define DIK_Y 0x15
|
---|
| 531 | #define DIK_U 0x16
|
---|
| 532 | #define DIK_I 0x17
|
---|
| 533 | #define DIK_O 0x18
|
---|
| 534 | #define DIK_P 0x19
|
---|
| 535 | #define DIK_LBRACKET 0x1A
|
---|
| 536 | #define DIK_RBRACKET 0x1B
|
---|
| 537 | #define DIK_RETURN 0x1C /* Enter on main keyboard */
|
---|
| 538 | #define DIK_LCONTROL 0x1D
|
---|
| 539 | #define DIK_A 0x1E
|
---|
| 540 | #define DIK_S 0x1F
|
---|
| 541 | #define DIK_D 0x20
|
---|
| 542 | #define DIK_F 0x21
|
---|
| 543 | #define DIK_G 0x22
|
---|
| 544 | #define DIK_H 0x23
|
---|
| 545 | #define DIK_J 0x24
|
---|
| 546 | #define DIK_K 0x25
|
---|
| 547 | #define DIK_L 0x26
|
---|
| 548 | #define DIK_SEMICOLON 0x27
|
---|
| 549 | #define DIK_APOSTROPHE 0x28
|
---|
| 550 | #define DIK_GRAVE 0x29 /* accent grave */
|
---|
| 551 | #define DIK_LSHIFT 0x2A
|
---|
| 552 | #define DIK_BACKSLASH 0x2B
|
---|
| 553 | #define DIK_Z 0x2C
|
---|
| 554 | #define DIK_X 0x2D
|
---|
| 555 | #define DIK_C 0x2E
|
---|
| 556 | #define DIK_V 0x2F
|
---|
| 557 | #define DIK_B 0x30
|
---|
| 558 | #define DIK_N 0x31
|
---|
| 559 | #define DIK_M 0x32
|
---|
| 560 | #define DIK_COMMA 0x33
|
---|
| 561 | #define DIK_PERIOD 0x34 /* . on main keyboard */
|
---|
| 562 | #define DIK_SLASH 0x35 /* / on main keyboard */
|
---|
| 563 | #define DIK_RSHIFT 0x36
|
---|
| 564 | #define DIK_MULTIPLY 0x37 /* * on numeric keypad */
|
---|
| 565 | #define DIK_LMENU 0x38 /* left Alt */
|
---|
| 566 | #define DIK_SPACE 0x39
|
---|
| 567 | #define DIK_CAPITAL 0x3A
|
---|
| 568 | #define DIK_F1 0x3B
|
---|
| 569 | #define DIK_F2 0x3C
|
---|
| 570 | #define DIK_F3 0x3D
|
---|
| 571 | #define DIK_F4 0x3E
|
---|
| 572 | #define DIK_F5 0x3F
|
---|
| 573 | #define DIK_F6 0x40
|
---|
| 574 | #define DIK_F7 0x41
|
---|
| 575 | #define DIK_F8 0x42
|
---|
| 576 | #define DIK_F9 0x43
|
---|
| 577 | #define DIK_F10 0x44
|
---|
| 578 | #define DIK_NUMLOCK 0x45
|
---|
| 579 | #define DIK_SCROLL 0x46 /* Scroll Lock */
|
---|
| 580 | #define DIK_NUMPAD7 0x47
|
---|
| 581 | #define DIK_NUMPAD8 0x48
|
---|
| 582 | #define DIK_NUMPAD9 0x49
|
---|
| 583 | #define DIK_SUBTRACT 0x4A /* - on numeric keypad */
|
---|
| 584 | #define DIK_NUMPAD4 0x4B
|
---|
| 585 | #define DIK_NUMPAD5 0x4C
|
---|
| 586 | #define DIK_NUMPAD6 0x4D
|
---|
| 587 | #define DIK_ADD 0x4E /* + on numeric keypad */
|
---|
| 588 | #define DIK_NUMPAD1 0x4F
|
---|
| 589 | #define DIK_NUMPAD2 0x50
|
---|
| 590 | #define DIK_NUMPAD3 0x51
|
---|
| 591 | #define DIK_NUMPAD0 0x52
|
---|
| 592 | #define DIK_DECIMAL 0x53 /* . on numeric keypad */
|
---|
| 593 | #define DIK_OEM_102 0x56 /* < > | on UK/Germany keyboards */
|
---|
| 594 | #define DIK_F11 0x57
|
---|
| 595 | #define DIK_F12 0x58
|
---|
| 596 | #define DIK_F13 0x64 /* (NEC PC98) */
|
---|
| 597 | #define DIK_F14 0x65 /* (NEC PC98) */
|
---|
| 598 | #define DIK_F15 0x66 /* (NEC PC98) */
|
---|
| 599 | #define DIK_KANA 0x70 /* (Japanese keyboard) */
|
---|
| 600 | #define DIK_ABNT_C1 0x73 /* / ? on Portugese (Brazilian) keyboards */
|
---|
| 601 | #define DIK_CONVERT 0x79 /* (Japanese keyboard) */
|
---|
| 602 | #define DIK_NOCONVERT 0x7B /* (Japanese keyboard) */
|
---|
| 603 | #define DIK_YEN 0x7D /* (Japanese keyboard) */
|
---|
| 604 | #define DIK_ABNT_C2 0x7E /* Numpad . on Portugese (Brazilian) keyboards */
|
---|
| 605 | #define DIK_NUMPADEQUALS 0x8D /* = on numeric keypad (NEC PC98) */
|
---|
| 606 | #define DIK_CIRCUMFLEX 0x90 /* (Japanese keyboard) */
|
---|
| 607 | #define DIK_AT 0x91 /* (NEC PC98) */
|
---|
| 608 | #define DIK_COLON 0x92 /* (NEC PC98) */
|
---|
| 609 | #define DIK_UNDERLINE 0x93 /* (NEC PC98) */
|
---|
| 610 | #define DIK_KANJI 0x94 /* (Japanese keyboard) */
|
---|
| 611 | #define DIK_STOP 0x95 /* (NEC PC98) */
|
---|
| 612 | #define DIK_AX 0x96 /* (Japan AX) */
|
---|
| 613 | #define DIK_UNLABELED 0x97 /* (J3100) */
|
---|
| 614 | #define DIK_NEXTTRACK 0x99 /* Next Track */
|
---|
| 615 | #define DIK_NUMPADENTER 0x9C /* Enter on numeric keypad */
|
---|
| 616 | #define DIK_RCONTROL 0x9D
|
---|
| 617 | #define DIK_MUTE 0xA0 /* Mute */
|
---|
| 618 | #define DIK_CALCULATOR 0xA1 /* Calculator */
|
---|
| 619 | #define DIK_PLAYPAUSE 0xA2 /* Play / Pause */
|
---|
| 620 | #define DIK_MEDIASTOP 0xA4 /* Media Stop */
|
---|
| 621 | #define DIK_VOLUMEDOWN 0xAE /* Volume - */
|
---|
| 622 | #define DIK_VOLUMEUP 0xB0 /* Volume + */
|
---|
| 623 | #define DIK_WEBHOME 0xB2 /* Web home */
|
---|
| 624 | #define DIK_NUMPADCOMMA 0xB3 /* , on numeric keypad (NEC PC98) */
|
---|
| 625 | #define DIK_DIVIDE 0xB5 /* / on numeric keypad */
|
---|
| 626 | #define DIK_SYSRQ 0xB7
|
---|
| 627 | #define DIK_RMENU 0xB8 /* right Alt */
|
---|
| 628 | #define DIK_PAUSE 0xC5 /* Pause */
|
---|
| 629 | #define DIK_HOME 0xC7 /* Home on arrow keypad */
|
---|
| 630 | #define DIK_UP 0xC8 /* UpArrow on arrow keypad */
|
---|
| 631 | #define DIK_PRIOR 0xC9 /* PgUp on arrow keypad */
|
---|
| 632 | #define DIK_LEFT 0xCB /* LeftArrow on arrow keypad */
|
---|
| 633 | #define DIK_RIGHT 0xCD /* RightArrow on arrow keypad */
|
---|
| 634 | #define DIK_END 0xCF /* End on arrow keypad */
|
---|
| 635 | #define DIK_DOWN 0xD0 /* DownArrow on arrow keypad */
|
---|
| 636 | #define DIK_NEXT 0xD1 /* PgDn on arrow keypad */
|
---|
| 637 | #define DIK_INSERT 0xD2 /* Insert on arrow keypad */
|
---|
| 638 | #define DIK_DELETE 0xD3 /* Delete on arrow keypad */
|
---|
| 639 | #define DIK_LWIN 0xDB /* Left Windows key */
|
---|
| 640 | #define DIK_RWIN 0xDC /* Right Windows key */
|
---|
| 641 | #define DIK_APPS 0xDD /* AppMenu key */
|
---|
| 642 | #define DIK_POWER 0xDE
|
---|
| 643 | #define DIK_SLEEP 0xDF
|
---|
| 644 | #define DIK_WAKE 0xE3 /* System Wake */
|
---|
| 645 | #define DIK_WEBSEARCH 0xE5 /* Web Search */
|
---|
| 646 | #define DIK_WEBFAVORITES 0xE6 /* Web Favorites */
|
---|
| 647 | #define DIK_WEBREFRESH 0xE7 /* Web Refresh */
|
---|
| 648 | #define DIK_WEBSTOP 0xE8 /* Web Stop */
|
---|
| 649 | #define DIK_WEBFORWARD 0xE9 /* Web Forward */
|
---|
| 650 | #define DIK_WEBBACK 0xEA /* Web Back */
|
---|
| 651 | #define DIK_MYCOMPUTER 0xEB /* My Computer */
|
---|
| 652 | #define DIK_MAIL 0xEC /* Mail */
|
---|
| 653 | #define DIK_MEDIASELECT 0xED /* Media Select */
|
---|
| 654 |
|
---|
| 655 | #define DIK_BACKSPACE DIK_BACK /* backspace */
|
---|
| 656 | #define DIK_NUMPADSTAR DIK_MULTIPLY /* * on numeric keypad */
|
---|
| 657 | #define DIK_LALT DIK_LMENU /* left Alt */
|
---|
| 658 | #define DIK_CAPSLOCK DIK_CAPITAL /* CapsLock */
|
---|
| 659 | #define DIK_NUMPADMINUS DIK_SUBTRACT /* - on numeric keypad */
|
---|
| 660 | #define DIK_NUMPADPLUS DIK_ADD /* + on numeric keypad */
|
---|
| 661 | #define DIK_NUMPADPERIOD DIK_DECIMAL /* . on numeric keypad */
|
---|
| 662 | #define DIK_NUMPADSLASH DIK_DIVIDE /* / on numeric keypad */
|
---|
| 663 | #define DIK_RALT DIK_RMENU /* right Alt */
|
---|
| 664 | #define DIK_UPARROW DIK_UP /* UpArrow on arrow keypad */
|
---|
| 665 | #define DIK_PGUP DIK_PRIOR /* PgUp on arrow keypad */
|
---|
| 666 | #define DIK_LEFTARROW DIK_LEFT /* LeftArrow on arrow keypad */
|
---|
| 667 | #define DIK_RIGHTARROW DIK_RIGHT /* RightArrow on arrow keypad */
|
---|
| 668 | #define DIK_DOWNARROW DIK_DOWN /* DownArrow on arrow keypad */
|
---|
| 669 | #define DIK_PGDN DIK_NEXT /* PgDn on arrow keypad */
|
---|
| 670 |
|
---|
| 671 | #define DIDFT_ALL 0x00000000
|
---|
| 672 | #define DIDFT_RELAXIS 0x00000001
|
---|
| 673 | #define DIDFT_ABSAXIS 0x00000002
|
---|
| 674 | #define DIDFT_AXIS 0x00000003
|
---|
| 675 | #define DIDFT_PSHBUTTON 0x00000004
|
---|
| 676 | #define DIDFT_TGLBUTTON 0x00000008
|
---|
| 677 | #define DIDFT_BUTTON 0x0000000C
|
---|
| 678 | #define DIDFT_POV 0x00000010
|
---|
| 679 | #define DIDFT_COLLECTION 0x00000040
|
---|
| 680 | #define DIDFT_NODATA 0x00000080
|
---|
| 681 | #define DIDFT_ANYINSTANCE 0x00FFFF00
|
---|
| 682 | #define DIDFT_INSTANCEMASK DIDFT_ANYINSTANCE
|
---|
| 683 | #define DIDFT_MAKEINSTANCE(n) ((WORD)(n) << 8)
|
---|
| 684 | #define DIDFT_GETTYPE(n) LOBYTE(n)
|
---|
| 685 | #define DIDFT_GETINSTANCE(n) LOWORD((n) >> 8)
|
---|
| 686 | #define DIDFT_FFACTUATOR 0x01000000
|
---|
| 687 | #define DIDFT_FFEFFECTTRIGGER 0x02000000
|
---|
| 688 | #if DIRECTINPUT_VERSION >= 0x050a
|
---|
| 689 | #define DIDFT_OUTPUT 0x10000000
|
---|
| 690 | #define DIDFT_VENDORDEFINED 0x04000000
|
---|
| 691 | #define DIDFT_ALIAS 0x08000000
|
---|
| 692 | #endif /* DI5a */
|
---|
| 693 | #ifndef DIDFT_OPTIONAL
|
---|
| 694 | #define DIDFT_OPTIONAL 0x80000000
|
---|
| 695 | #endif
|
---|
| 696 | #define DIDFT_ENUMCOLLECTION(n) ((WORD)(n) << 8)
|
---|
| 697 | #define DIDFT_NOCOLLECTION 0x00FFFF00
|
---|
| 698 |
|
---|
| 699 | #define DIDF_ABSAXIS 0x00000001
|
---|
| 700 | #define DIDF_RELAXIS 0x00000002
|
---|
| 701 |
|
---|
| 702 | #define DIGDD_PEEK 0x00000001
|
---|
| 703 |
|
---|
| 704 | #define DISEQUENCE_COMPARE(dwSq1,cmp,dwSq2) ((int)((dwSq1) - (dwSq2)) cmp 0)
|
---|
| 705 |
|
---|
| 706 | typedef struct DIDEVICEOBJECTDATA_DX3 {
|
---|
| 707 | DWORD dwOfs;
|
---|
| 708 | DWORD dwData;
|
---|
| 709 | DWORD dwTimeStamp;
|
---|
| 710 | DWORD dwSequence;
|
---|
| 711 | } DIDEVICEOBJECTDATA_DX3,*LPDIDEVICEOBJECTDATA_DX3;
|
---|
| 712 | typedef const DIDEVICEOBJECTDATA_DX3 *LPCDIDEVICEOBJECTDATA_DX3;
|
---|
| 713 |
|
---|
| 714 | typedef struct DIDEVICEOBJECTDATA {
|
---|
| 715 | DWORD dwOfs;
|
---|
| 716 | DWORD dwData;
|
---|
| 717 | DWORD dwTimeStamp;
|
---|
| 718 | DWORD dwSequence;
|
---|
| 719 | #if(DIRECTINPUT_VERSION >= 0x0800)
|
---|
| 720 | UINT_PTR uAppData;
|
---|
| 721 | #endif /* DIRECTINPUT_VERSION >= 0x0800 */
|
---|
| 722 | } DIDEVICEOBJECTDATA, *LPDIDEVICEOBJECTDATA;
|
---|
| 723 | typedef const DIDEVICEOBJECTDATA *LPCDIDEVICEOBJECTDATA;
|
---|
| 724 |
|
---|
| 725 | typedef struct _DIOBJECTDATAFORMAT {
|
---|
| 726 | const GUID *pguid;
|
---|
| 727 | DWORD dwOfs;
|
---|
| 728 | DWORD dwType;
|
---|
| 729 | DWORD dwFlags;
|
---|
| 730 | } DIOBJECTDATAFORMAT, *LPDIOBJECTDATAFORMAT;
|
---|
| 731 | typedef const DIOBJECTDATAFORMAT *LPCDIOBJECTDATAFORMAT;
|
---|
| 732 |
|
---|
| 733 | typedef struct _DIDATAFORMAT {
|
---|
| 734 | DWORD dwSize;
|
---|
| 735 | DWORD dwObjSize;
|
---|
| 736 | DWORD dwFlags;
|
---|
| 737 | DWORD dwDataSize;
|
---|
| 738 | DWORD dwNumObjs;
|
---|
| 739 | LPDIOBJECTDATAFORMAT rgodf;
|
---|
| 740 | } DIDATAFORMAT, *LPDIDATAFORMAT;
|
---|
| 741 | typedef const DIDATAFORMAT *LPCDIDATAFORMAT;
|
---|
| 742 |
|
---|
| 743 | #if DIRECTINPUT_VERSION >= 0x0500
|
---|
| 744 | #define DIDOI_FFACTUATOR 0x00000001
|
---|
| 745 | #define DIDOI_FFEFFECTTRIGGER 0x00000002
|
---|
| 746 | #define DIDOI_POLLED 0x00008000
|
---|
| 747 | #define DIDOI_ASPECTPOSITION 0x00000100
|
---|
| 748 | #define DIDOI_ASPECTVELOCITY 0x00000200
|
---|
| 749 | #define DIDOI_ASPECTACCEL 0x00000300
|
---|
| 750 | #define DIDOI_ASPECTFORCE 0x00000400
|
---|
| 751 | #define DIDOI_ASPECTMASK 0x00000F00
|
---|
| 752 | #endif /* DI5 */
|
---|
| 753 | #if DIRECTINPUT_VERSION >= 0x050a
|
---|
| 754 | #define DIDOI_GUIDISUSAGE 0x00010000
|
---|
| 755 | #endif /* DI5a */
|
---|
| 756 |
|
---|
| 757 | typedef struct DIPROPHEADER {
|
---|
| 758 | DWORD dwSize;
|
---|
| 759 | DWORD dwHeaderSize;
|
---|
| 760 | DWORD dwObj;
|
---|
| 761 | DWORD dwHow;
|
---|
| 762 | } DIPROPHEADER,*LPDIPROPHEADER;
|
---|
| 763 | typedef const DIPROPHEADER *LPCDIPROPHEADER;
|
---|
| 764 |
|
---|
| 765 | #define DIPH_DEVICE 0
|
---|
| 766 | #define DIPH_BYOFFSET 1
|
---|
| 767 | #define DIPH_BYID 2
|
---|
| 768 | #if DIRECTINPUT_VERSION >= 0x050a
|
---|
| 769 | #define DIPH_BYUSAGE 3
|
---|
| 770 |
|
---|
| 771 | #define DIMAKEUSAGEDWORD(UsagePage, Usage) (DWORD)MAKELONG(Usage, UsagePage)
|
---|
| 772 | #endif /* DI5a */
|
---|
| 773 |
|
---|
| 774 | typedef struct DIPROPDWORD {
|
---|
| 775 | DIPROPHEADER diph;
|
---|
| 776 | DWORD dwData;
|
---|
| 777 | } DIPROPDWORD, *LPDIPROPDWORD;
|
---|
| 778 | typedef const DIPROPDWORD *LPCDIPROPDWORD;
|
---|
| 779 |
|
---|
| 780 | typedef struct DIPROPRANGE {
|
---|
| 781 | DIPROPHEADER diph;
|
---|
| 782 | LONG lMin;
|
---|
| 783 | LONG lMax;
|
---|
| 784 | } DIPROPRANGE, *LPDIPROPRANGE;
|
---|
| 785 | typedef const DIPROPRANGE *LPCDIPROPRANGE;
|
---|
| 786 |
|
---|
| 787 | #define DIPROPRANGE_NOMIN ((LONG)0x80000000)
|
---|
| 788 | #define DIPROPRANGE_NOMAX ((LONG)0x7FFFFFFF)
|
---|
| 789 |
|
---|
| 790 | #if DIRECTINPUT_VERSION >= 0x050a
|
---|
| 791 | typedef struct DIPROPCAL {
|
---|
| 792 | DIPROPHEADER diph;
|
---|
| 793 | LONG lMin;
|
---|
| 794 | LONG lCenter;
|
---|
| 795 | LONG lMax;
|
---|
| 796 | } DIPROPCAL, *LPDIPROPCAL;
|
---|
| 797 | typedef const DIPROPCAL *LPCDIPROPCAL;
|
---|
| 798 |
|
---|
| 799 | typedef struct DIPROPCALPOV {
|
---|
| 800 | DIPROPHEADER diph;
|
---|
| 801 | LONG lMin[5];
|
---|
| 802 | LONG lMax[5];
|
---|
| 803 | } DIPROPCALPOV, *LPDIPROPCALPOV;
|
---|
| 804 | typedef const DIPROPCALPOV *LPCDIPROPCALPOV;
|
---|
| 805 |
|
---|
| 806 | typedef struct DIPROPGUIDANDPATH {
|
---|
| 807 | DIPROPHEADER diph;
|
---|
| 808 | GUID guidClass;
|
---|
| 809 | WCHAR wszPath[MAX_PATH];
|
---|
| 810 | } DIPROPGUIDANDPATH, *LPDIPROPGUIDANDPATH;
|
---|
| 811 | typedef const DIPROPGUIDANDPATH *LPCDIPROPGUIDANDPATH;
|
---|
| 812 |
|
---|
| 813 | typedef struct DIPROPSTRING {
|
---|
| 814 | DIPROPHEADER diph;
|
---|
| 815 | WCHAR wsz[MAX_PATH];
|
---|
| 816 | } DIPROPSTRING, *LPDIPROPSTRING;
|
---|
| 817 | typedef const DIPROPSTRING *LPCDIPROPSTRING;
|
---|
| 818 | #endif /* DI5a */
|
---|
| 819 |
|
---|
| 820 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 821 | typedef struct DIPROPPOINTER {
|
---|
| 822 | DIPROPHEADER diph;
|
---|
| 823 | UINT_PTR uData;
|
---|
| 824 | } DIPROPPOINTER, *LPDIPROPPOINTER;
|
---|
| 825 | typedef const DIPROPPOINTER *LPCDIPROPPOINTER;
|
---|
| 826 | #endif /* DI8 */
|
---|
| 827 |
|
---|
| 828 | /* special property GUIDs */
|
---|
| 829 | #ifdef __cplusplus
|
---|
| 830 | #define MAKEDIPROP(prop) (*(const GUID *)(prop))
|
---|
| 831 | #else
|
---|
| 832 | #define MAKEDIPROP(prop) ((REFGUID)(prop))
|
---|
| 833 | #endif
|
---|
| 834 | #define DIPROP_BUFFERSIZE MAKEDIPROP(1)
|
---|
| 835 | #define DIPROP_AXISMODE MAKEDIPROP(2)
|
---|
| 836 |
|
---|
| 837 | #define DIPROPAXISMODE_ABS 0
|
---|
| 838 | #define DIPROPAXISMODE_REL 1
|
---|
| 839 |
|
---|
| 840 | #define DIPROP_GRANULARITY MAKEDIPROP(3)
|
---|
| 841 | #define DIPROP_RANGE MAKEDIPROP(4)
|
---|
| 842 | #define DIPROP_DEADZONE MAKEDIPROP(5)
|
---|
| 843 | #define DIPROP_SATURATION MAKEDIPROP(6)
|
---|
| 844 | #define DIPROP_FFGAIN MAKEDIPROP(7)
|
---|
| 845 | #define DIPROP_FFLOAD MAKEDIPROP(8)
|
---|
| 846 | #define DIPROP_AUTOCENTER MAKEDIPROP(9)
|
---|
| 847 |
|
---|
| 848 | #define DIPROPAUTOCENTER_OFF 0
|
---|
| 849 | #define DIPROPAUTOCENTER_ON 1
|
---|
| 850 |
|
---|
| 851 | #define DIPROP_CALIBRATIONMODE MAKEDIPROP(10)
|
---|
| 852 |
|
---|
| 853 | #define DIPROPCALIBRATIONMODE_COOKED 0
|
---|
| 854 | #define DIPROPCALIBRATIONMODE_RAW 1
|
---|
| 855 |
|
---|
| 856 | #if DIRECTINPUT_VERSION >= 0x050a
|
---|
| 857 | #define DIPROP_CALIBRATION MAKEDIPROP(11)
|
---|
| 858 | #define DIPROP_GUIDANDPATH MAKEDIPROP(12)
|
---|
| 859 | #define DIPROP_INSTANCENAME MAKEDIPROP(13)
|
---|
| 860 | #define DIPROP_PRODUCTNAME MAKEDIPROP(14)
|
---|
| 861 | #endif
|
---|
| 862 |
|
---|
| 863 | #if DIRECTINPUT_VERSION >= 0x5B2
|
---|
| 864 | #define DIPROP_JOYSTICKID MAKEDIPROP(15)
|
---|
| 865 | #define DIPROP_GETPORTDISPLAYNAME MAKEDIPROP(16)
|
---|
| 866 | #endif
|
---|
| 867 |
|
---|
| 868 | #if DIRECTINPUT_VERSION >= 0x0700
|
---|
| 869 | #define DIPROP_PHYSICALRANGE MAKEDIPROP(18)
|
---|
| 870 | #define DIPROP_LOGICALRANGE MAKEDIPROP(19)
|
---|
| 871 | #endif
|
---|
| 872 |
|
---|
| 873 | #if(DIRECTINPUT_VERSION >= 0x0800)
|
---|
| 874 | #define DIPROP_KEYNAME MAKEDIPROP(20)
|
---|
| 875 | #define DIPROP_CPOINTS MAKEDIPROP(21)
|
---|
| 876 | #define DIPROP_APPDATA MAKEDIPROP(22)
|
---|
| 877 | #define DIPROP_SCANCODE MAKEDIPROP(23)
|
---|
| 878 | #define DIPROP_VIDPID MAKEDIPROP(24)
|
---|
| 879 | #define DIPROP_USERNAME MAKEDIPROP(25)
|
---|
| 880 | #define DIPROP_TYPENAME MAKEDIPROP(26)
|
---|
| 881 |
|
---|
| 882 | #define MAXCPOINTSNUM 8
|
---|
| 883 |
|
---|
| 884 | typedef struct _CPOINT {
|
---|
| 885 | LONG lP;
|
---|
| 886 | DWORD dwLog;
|
---|
| 887 | } CPOINT, *PCPOINT;
|
---|
| 888 |
|
---|
| 889 | typedef struct DIPROPCPOINTS {
|
---|
| 890 | DIPROPHEADER diph;
|
---|
| 891 | DWORD dwCPointsNum;
|
---|
| 892 | CPOINT cp[MAXCPOINTSNUM];
|
---|
| 893 | } DIPROPCPOINTS, *LPDIPROPCPOINTS;
|
---|
| 894 | typedef const DIPROPCPOINTS *LPCDIPROPCPOINTS;
|
---|
| 895 | #endif /* DI8 */
|
---|
| 896 |
|
---|
| 897 |
|
---|
| 898 | typedef struct DIDEVCAPS_DX3 {
|
---|
| 899 | DWORD dwSize;
|
---|
| 900 | DWORD dwFlags;
|
---|
| 901 | DWORD dwDevType;
|
---|
| 902 | DWORD dwAxes;
|
---|
| 903 | DWORD dwButtons;
|
---|
| 904 | DWORD dwPOVs;
|
---|
| 905 | } DIDEVCAPS_DX3, *LPDIDEVCAPS_DX3;
|
---|
| 906 |
|
---|
| 907 | typedef struct DIDEVCAPS {
|
---|
| 908 | DWORD dwSize;
|
---|
| 909 | DWORD dwFlags;
|
---|
| 910 | DWORD dwDevType;
|
---|
| 911 | DWORD dwAxes;
|
---|
| 912 | DWORD dwButtons;
|
---|
| 913 | DWORD dwPOVs;
|
---|
| 914 | #if(DIRECTINPUT_VERSION >= 0x0500)
|
---|
| 915 | DWORD dwFFSamplePeriod;
|
---|
| 916 | DWORD dwFFMinTimeResolution;
|
---|
| 917 | DWORD dwFirmwareRevision;
|
---|
| 918 | DWORD dwHardwareRevision;
|
---|
| 919 | DWORD dwFFDriverVersion;
|
---|
| 920 | #endif /* DIRECTINPUT_VERSION >= 0x0500 */
|
---|
| 921 | } DIDEVCAPS,*LPDIDEVCAPS;
|
---|
| 922 |
|
---|
| 923 | #define DIDC_ATTACHED 0x00000001
|
---|
| 924 | #define DIDC_POLLEDDEVICE 0x00000002
|
---|
| 925 | #define DIDC_EMULATED 0x00000004
|
---|
| 926 | #define DIDC_POLLEDDATAFORMAT 0x00000008
|
---|
| 927 | #define DIDC_FORCEFEEDBACK 0x00000100
|
---|
| 928 | #define DIDC_FFATTACK 0x00000200
|
---|
| 929 | #define DIDC_FFFADE 0x00000400
|
---|
| 930 | #define DIDC_SATURATION 0x00000800
|
---|
| 931 | #define DIDC_POSNEGCOEFFICIENTS 0x00001000
|
---|
| 932 | #define DIDC_POSNEGSATURATION 0x00002000
|
---|
| 933 | #define DIDC_DEADBAND 0x00004000
|
---|
| 934 | #define DIDC_STARTDELAY 0x00008000
|
---|
| 935 | #define DIDC_ALIAS 0x00010000
|
---|
| 936 | #define DIDC_PHANTOM 0x00020000
|
---|
| 937 | #define DIDC_HIDDEN 0x00040000
|
---|
| 938 |
|
---|
| 939 |
|
---|
| 940 | /* SetCooperativeLevel dwFlags */
|
---|
| 941 | #define DISCL_EXCLUSIVE 0x00000001
|
---|
| 942 | #define DISCL_NONEXCLUSIVE 0x00000002
|
---|
| 943 | #define DISCL_FOREGROUND 0x00000004
|
---|
| 944 | #define DISCL_BACKGROUND 0x00000008
|
---|
| 945 | #define DISCL_NOWINKEY 0x00000010
|
---|
| 946 |
|
---|
| 947 | #if (DIRECTINPUT_VERSION >= 0x0500)
|
---|
| 948 | /* Device FF flags */
|
---|
| 949 | #define DISFFC_RESET 0x00000001
|
---|
| 950 | #define DISFFC_STOPALL 0x00000002
|
---|
| 951 | #define DISFFC_PAUSE 0x00000004
|
---|
| 952 | #define DISFFC_CONTINUE 0x00000008
|
---|
| 953 | #define DISFFC_SETACTUATORSON 0x00000010
|
---|
| 954 | #define DISFFC_SETACTUATORSOFF 0x00000020
|
---|
| 955 |
|
---|
| 956 | #define DIGFFS_EMPTY 0x00000001
|
---|
| 957 | #define DIGFFS_STOPPED 0x00000002
|
---|
| 958 | #define DIGFFS_PAUSED 0x00000004
|
---|
| 959 | #define DIGFFS_ACTUATORSON 0x00000010
|
---|
| 960 | #define DIGFFS_ACTUATORSOFF 0x00000020
|
---|
| 961 | #define DIGFFS_POWERON 0x00000040
|
---|
| 962 | #define DIGFFS_POWEROFF 0x00000080
|
---|
| 963 | #define DIGFFS_SAFETYSWITCHON 0x00000100
|
---|
| 964 | #define DIGFFS_SAFETYSWITCHOFF 0x00000200
|
---|
| 965 | #define DIGFFS_USERFFSWITCHON 0x00000400
|
---|
| 966 | #define DIGFFS_USERFFSWITCHOFF 0x00000800
|
---|
| 967 | #define DIGFFS_DEVICELOST 0x80000000
|
---|
| 968 |
|
---|
| 969 | /* Effect flags */
|
---|
| 970 | #define DIEFT_ALL 0x00000000
|
---|
| 971 |
|
---|
| 972 | #define DIEFT_CONSTANTFORCE 0x00000001
|
---|
| 973 | #define DIEFT_RAMPFORCE 0x00000002
|
---|
| 974 | #define DIEFT_PERIODIC 0x00000003
|
---|
| 975 | #define DIEFT_CONDITION 0x00000004
|
---|
| 976 | #define DIEFT_CUSTOMFORCE 0x00000005
|
---|
| 977 | #define DIEFT_HARDWARE 0x000000FF
|
---|
| 978 | #define DIEFT_FFATTACK 0x00000200
|
---|
| 979 | #define DIEFT_FFFADE 0x00000400
|
---|
| 980 | #define DIEFT_SATURATION 0x00000800
|
---|
| 981 | #define DIEFT_POSNEGCOEFFICIENTS 0x00001000
|
---|
| 982 | #define DIEFT_POSNEGSATURATION 0x00002000
|
---|
| 983 | #define DIEFT_DEADBAND 0x00004000
|
---|
| 984 | #define DIEFT_STARTDELAY 0x00008000
|
---|
| 985 | #define DIEFT_GETTYPE(n) LOBYTE(n)
|
---|
| 986 |
|
---|
| 987 | #define DIEFF_OBJECTIDS 0x00000001
|
---|
| 988 | #define DIEFF_OBJECTOFFSETS 0x00000002
|
---|
| 989 | #define DIEFF_CARTESIAN 0x00000010
|
---|
| 990 | #define DIEFF_POLAR 0x00000020
|
---|
| 991 | #define DIEFF_SPHERICAL 0x00000040
|
---|
| 992 |
|
---|
| 993 | #define DIEP_DURATION 0x00000001
|
---|
| 994 | #define DIEP_SAMPLEPERIOD 0x00000002
|
---|
| 995 | #define DIEP_GAIN 0x00000004
|
---|
| 996 | #define DIEP_TRIGGERBUTTON 0x00000008
|
---|
| 997 | #define DIEP_TRIGGERREPEATINTERVAL 0x00000010
|
---|
| 998 | #define DIEP_AXES 0x00000020
|
---|
| 999 | #define DIEP_DIRECTION 0x00000040
|
---|
| 1000 | #define DIEP_ENVELOPE 0x00000080
|
---|
| 1001 | #define DIEP_TYPESPECIFICPARAMS 0x00000100
|
---|
| 1002 | #if(DIRECTINPUT_VERSION >= 0x0600)
|
---|
| 1003 | #define DIEP_STARTDELAY 0x00000200
|
---|
| 1004 | #define DIEP_ALLPARAMS_DX5 0x000001FF
|
---|
| 1005 | #define DIEP_ALLPARAMS 0x000003FF
|
---|
| 1006 | #else
|
---|
| 1007 | #define DIEP_ALLPARAMS 0x000001FF
|
---|
| 1008 | #endif /* DIRECTINPUT_VERSION >= 0x0600 */
|
---|
| 1009 | #define DIEP_START 0x20000000
|
---|
| 1010 | #define DIEP_NORESTART 0x40000000
|
---|
| 1011 | #define DIEP_NODOWNLOAD 0x80000000
|
---|
| 1012 | #define DIEB_NOTRIGGER 0xFFFFFFFF
|
---|
| 1013 |
|
---|
| 1014 | #define DIES_SOLO 0x00000001
|
---|
| 1015 | #define DIES_NODOWNLOAD 0x80000000
|
---|
| 1016 |
|
---|
| 1017 | #define DIEGES_PLAYING 0x00000001
|
---|
| 1018 | #define DIEGES_EMULATED 0x00000002
|
---|
| 1019 |
|
---|
| 1020 | #define DI_DEGREES 100
|
---|
| 1021 | #define DI_FFNOMINALMAX 10000
|
---|
| 1022 | #define DI_SECONDS 1000000
|
---|
| 1023 |
|
---|
| 1024 | typedef struct DICONSTANTFORCE {
|
---|
| 1025 | LONG lMagnitude;
|
---|
| 1026 | } DICONSTANTFORCE, *LPDICONSTANTFORCE;
|
---|
| 1027 | typedef const DICONSTANTFORCE *LPCDICONSTANTFORCE;
|
---|
| 1028 |
|
---|
| 1029 | typedef struct DIRAMPFORCE {
|
---|
| 1030 | LONG lStart;
|
---|
| 1031 | LONG lEnd;
|
---|
| 1032 | } DIRAMPFORCE, *LPDIRAMPFORCE;
|
---|
| 1033 | typedef const DIRAMPFORCE *LPCDIRAMPFORCE;
|
---|
| 1034 |
|
---|
| 1035 | typedef struct DIPERIODIC {
|
---|
| 1036 | DWORD dwMagnitude;
|
---|
| 1037 | LONG lOffset;
|
---|
| 1038 | DWORD dwPhase;
|
---|
| 1039 | DWORD dwPeriod;
|
---|
| 1040 | } DIPERIODIC, *LPDIPERIODIC;
|
---|
| 1041 | typedef const DIPERIODIC *LPCDIPERIODIC;
|
---|
| 1042 |
|
---|
| 1043 | typedef struct DICONDITION {
|
---|
| 1044 | LONG lOffset;
|
---|
| 1045 | LONG lPositiveCoefficient;
|
---|
| 1046 | LONG lNegativeCoefficient;
|
---|
| 1047 | DWORD dwPositiveSaturation;
|
---|
| 1048 | DWORD dwNegativeSaturation;
|
---|
| 1049 | LONG lDeadBand;
|
---|
| 1050 | } DICONDITION, *LPDICONDITION;
|
---|
| 1051 | typedef const DICONDITION *LPCDICONDITION;
|
---|
| 1052 |
|
---|
| 1053 | typedef struct DICUSTOMFORCE {
|
---|
| 1054 | DWORD cChannels;
|
---|
| 1055 | DWORD dwSamplePeriod;
|
---|
| 1056 | DWORD cSamples;
|
---|
| 1057 | LPLONG rglForceData;
|
---|
| 1058 | } DICUSTOMFORCE, *LPDICUSTOMFORCE;
|
---|
| 1059 | typedef const DICUSTOMFORCE *LPCDICUSTOMFORCE;
|
---|
| 1060 |
|
---|
| 1061 | typedef struct DIENVELOPE {
|
---|
| 1062 | DWORD dwSize;
|
---|
| 1063 | DWORD dwAttackLevel;
|
---|
| 1064 | DWORD dwAttackTime;
|
---|
| 1065 | DWORD dwFadeLevel;
|
---|
| 1066 | DWORD dwFadeTime;
|
---|
| 1067 | } DIENVELOPE, *LPDIENVELOPE;
|
---|
| 1068 | typedef const DIENVELOPE *LPCDIENVELOPE;
|
---|
| 1069 |
|
---|
| 1070 | typedef struct DIEFFECT_DX5 {
|
---|
| 1071 | DWORD dwSize;
|
---|
| 1072 | DWORD dwFlags;
|
---|
| 1073 | DWORD dwDuration;
|
---|
| 1074 | DWORD dwSamplePeriod;
|
---|
| 1075 | DWORD dwGain;
|
---|
| 1076 | DWORD dwTriggerButton;
|
---|
| 1077 | DWORD dwTriggerRepeatInterval;
|
---|
| 1078 | DWORD cAxes;
|
---|
| 1079 | LPDWORD rgdwAxes;
|
---|
| 1080 | LPLONG rglDirection;
|
---|
| 1081 | LPDIENVELOPE lpEnvelope;
|
---|
| 1082 | DWORD cbTypeSpecificParams;
|
---|
| 1083 | LPVOID lpvTypeSpecificParams;
|
---|
| 1084 | } DIEFFECT_DX5, *LPDIEFFECT_DX5;
|
---|
| 1085 | typedef const DIEFFECT_DX5 *LPCDIEFFECT_DX5;
|
---|
| 1086 |
|
---|
| 1087 | typedef struct DIEFFECT {
|
---|
| 1088 | DWORD dwSize;
|
---|
| 1089 | DWORD dwFlags;
|
---|
| 1090 | DWORD dwDuration;
|
---|
| 1091 | DWORD dwSamplePeriod;
|
---|
| 1092 | DWORD dwGain;
|
---|
| 1093 | DWORD dwTriggerButton;
|
---|
| 1094 | DWORD dwTriggerRepeatInterval;
|
---|
| 1095 | DWORD cAxes;
|
---|
| 1096 | LPDWORD rgdwAxes;
|
---|
| 1097 | LPLONG rglDirection;
|
---|
| 1098 | LPDIENVELOPE lpEnvelope;
|
---|
| 1099 | DWORD cbTypeSpecificParams;
|
---|
| 1100 | LPVOID lpvTypeSpecificParams;
|
---|
| 1101 | #if(DIRECTINPUT_VERSION >= 0x0600)
|
---|
| 1102 | DWORD dwStartDelay;
|
---|
| 1103 | #endif /* DIRECTINPUT_VERSION >= 0x0600 */
|
---|
| 1104 | } DIEFFECT, *LPDIEFFECT;
|
---|
| 1105 | typedef const DIEFFECT *LPCDIEFFECT;
|
---|
| 1106 | typedef DIEFFECT DIEFFECT_DX6;
|
---|
| 1107 | typedef LPDIEFFECT LPDIEFFECT_DX6;
|
---|
| 1108 |
|
---|
| 1109 | typedef struct DIEFFECTINFOA {
|
---|
| 1110 | DWORD dwSize;
|
---|
| 1111 | GUID guid;
|
---|
| 1112 | DWORD dwEffType;
|
---|
| 1113 | DWORD dwStaticParams;
|
---|
| 1114 | DWORD dwDynamicParams;
|
---|
| 1115 | CHAR tszName[MAX_PATH];
|
---|
| 1116 | } DIEFFECTINFOA, *LPDIEFFECTINFOA;
|
---|
| 1117 | typedef const DIEFFECTINFOA *LPCDIEFFECTINFOA;
|
---|
| 1118 |
|
---|
| 1119 | typedef struct DIEFFECTINFOW {
|
---|
| 1120 | DWORD dwSize;
|
---|
| 1121 | GUID guid;
|
---|
| 1122 | DWORD dwEffType;
|
---|
| 1123 | DWORD dwStaticParams;
|
---|
| 1124 | DWORD dwDynamicParams;
|
---|
| 1125 | WCHAR tszName[MAX_PATH];
|
---|
| 1126 | } DIEFFECTINFOW, *LPDIEFFECTINFOW;
|
---|
| 1127 | typedef const DIEFFECTINFOW *LPCDIEFFECTINFOW;
|
---|
| 1128 |
|
---|
| 1129 | DECL_WINELIB_TYPE_AW(DIEFFECTINFO)
|
---|
| 1130 | DECL_WINELIB_TYPE_AW(LPDIEFFECTINFO)
|
---|
| 1131 | DECL_WINELIB_TYPE_AW(LPCDIEFFECTINFO)
|
---|
| 1132 |
|
---|
| 1133 | typedef WINBOOL (CALLBACK *LPDIENUMEFFECTSCALLBACKA)(LPCDIEFFECTINFOA, LPVOID);
|
---|
| 1134 | typedef WINBOOL (CALLBACK *LPDIENUMEFFECTSCALLBACKW)(LPCDIEFFECTINFOW, LPVOID);
|
---|
| 1135 |
|
---|
| 1136 | typedef struct DIEFFESCAPE {
|
---|
| 1137 | DWORD dwSize;
|
---|
| 1138 | DWORD dwCommand;
|
---|
| 1139 | LPVOID lpvInBuffer;
|
---|
| 1140 | DWORD cbInBuffer;
|
---|
| 1141 | LPVOID lpvOutBuffer;
|
---|
| 1142 | DWORD cbOutBuffer;
|
---|
| 1143 | } DIEFFESCAPE, *LPDIEFFESCAPE;
|
---|
| 1144 |
|
---|
| 1145 | typedef struct DIJOYSTATE {
|
---|
| 1146 | LONG lX;
|
---|
| 1147 | LONG lY;
|
---|
| 1148 | LONG lZ;
|
---|
| 1149 | LONG lRx;
|
---|
| 1150 | LONG lRy;
|
---|
| 1151 | LONG lRz;
|
---|
| 1152 | LONG rglSlider[2];
|
---|
| 1153 | DWORD rgdwPOV[4];
|
---|
| 1154 | BYTE rgbButtons[32];
|
---|
| 1155 | } DIJOYSTATE, *LPDIJOYSTATE;
|
---|
| 1156 |
|
---|
| 1157 | typedef struct DIJOYSTATE2 {
|
---|
| 1158 | LONG lX;
|
---|
| 1159 | LONG lY;
|
---|
| 1160 | LONG lZ;
|
---|
| 1161 | LONG lRx;
|
---|
| 1162 | LONG lRy;
|
---|
| 1163 | LONG lRz;
|
---|
| 1164 | LONG rglSlider[2];
|
---|
| 1165 | DWORD rgdwPOV[4];
|
---|
| 1166 | BYTE rgbButtons[128];
|
---|
| 1167 | LONG lVX; /* 'v' as in velocity */
|
---|
| 1168 | LONG lVY;
|
---|
| 1169 | LONG lVZ;
|
---|
| 1170 | LONG lVRx;
|
---|
| 1171 | LONG lVRy;
|
---|
| 1172 | LONG lVRz;
|
---|
| 1173 | LONG rglVSlider[2];
|
---|
| 1174 | LONG lAX; /* 'a' as in acceleration */
|
---|
| 1175 | LONG lAY;
|
---|
| 1176 | LONG lAZ;
|
---|
| 1177 | LONG lARx;
|
---|
| 1178 | LONG lARy;
|
---|
| 1179 | LONG lARz;
|
---|
| 1180 | LONG rglASlider[2];
|
---|
| 1181 | LONG lFX; /* 'f' as in force */
|
---|
| 1182 | LONG lFY;
|
---|
| 1183 | LONG lFZ;
|
---|
| 1184 | LONG lFRx; /* 'fr' as in rotational force aka torque */
|
---|
| 1185 | LONG lFRy;
|
---|
| 1186 | LONG lFRz;
|
---|
| 1187 | LONG rglFSlider[2];
|
---|
| 1188 | } DIJOYSTATE2, *LPDIJOYSTATE2;
|
---|
| 1189 |
|
---|
| 1190 | #define DIJOFS_X FIELD_OFFSET(DIJOYSTATE, lX)
|
---|
| 1191 | #define DIJOFS_Y FIELD_OFFSET(DIJOYSTATE, lY)
|
---|
| 1192 | #define DIJOFS_Z FIELD_OFFSET(DIJOYSTATE, lZ)
|
---|
| 1193 | #define DIJOFS_RX FIELD_OFFSET(DIJOYSTATE, lRx)
|
---|
| 1194 | #define DIJOFS_RY FIELD_OFFSET(DIJOYSTATE, lRy)
|
---|
| 1195 | #define DIJOFS_RZ FIELD_OFFSET(DIJOYSTATE, lRz)
|
---|
| 1196 | #define DIJOFS_SLIDER(n) (FIELD_OFFSET(DIJOYSTATE, rglSlider) + \
|
---|
| 1197 | (n) * sizeof(LONG))
|
---|
| 1198 | #define DIJOFS_POV(n) (FIELD_OFFSET(DIJOYSTATE, rgdwPOV) + \
|
---|
| 1199 | (n) * sizeof(DWORD))
|
---|
| 1200 | #define DIJOFS_BUTTON(n) (FIELD_OFFSET(DIJOYSTATE, rgbButtons) + (n))
|
---|
| 1201 | #define DIJOFS_BUTTON0 DIJOFS_BUTTON(0)
|
---|
| 1202 | #define DIJOFS_BUTTON1 DIJOFS_BUTTON(1)
|
---|
| 1203 | #define DIJOFS_BUTTON2 DIJOFS_BUTTON(2)
|
---|
| 1204 | #define DIJOFS_BUTTON3 DIJOFS_BUTTON(3)
|
---|
| 1205 | #define DIJOFS_BUTTON4 DIJOFS_BUTTON(4)
|
---|
| 1206 | #define DIJOFS_BUTTON5 DIJOFS_BUTTON(5)
|
---|
| 1207 | #define DIJOFS_BUTTON6 DIJOFS_BUTTON(6)
|
---|
| 1208 | #define DIJOFS_BUTTON7 DIJOFS_BUTTON(7)
|
---|
| 1209 | #define DIJOFS_BUTTON8 DIJOFS_BUTTON(8)
|
---|
| 1210 | #define DIJOFS_BUTTON9 DIJOFS_BUTTON(9)
|
---|
| 1211 | #define DIJOFS_BUTTON10 DIJOFS_BUTTON(10)
|
---|
| 1212 | #define DIJOFS_BUTTON11 DIJOFS_BUTTON(11)
|
---|
| 1213 | #define DIJOFS_BUTTON12 DIJOFS_BUTTON(12)
|
---|
| 1214 | #define DIJOFS_BUTTON13 DIJOFS_BUTTON(13)
|
---|
| 1215 | #define DIJOFS_BUTTON14 DIJOFS_BUTTON(14)
|
---|
| 1216 | #define DIJOFS_BUTTON15 DIJOFS_BUTTON(15)
|
---|
| 1217 | #define DIJOFS_BUTTON16 DIJOFS_BUTTON(16)
|
---|
| 1218 | #define DIJOFS_BUTTON17 DIJOFS_BUTTON(17)
|
---|
| 1219 | #define DIJOFS_BUTTON18 DIJOFS_BUTTON(18)
|
---|
| 1220 | #define DIJOFS_BUTTON19 DIJOFS_BUTTON(19)
|
---|
| 1221 | #define DIJOFS_BUTTON20 DIJOFS_BUTTON(20)
|
---|
| 1222 | #define DIJOFS_BUTTON21 DIJOFS_BUTTON(21)
|
---|
| 1223 | #define DIJOFS_BUTTON22 DIJOFS_BUTTON(22)
|
---|
| 1224 | #define DIJOFS_BUTTON23 DIJOFS_BUTTON(23)
|
---|
| 1225 | #define DIJOFS_BUTTON24 DIJOFS_BUTTON(24)
|
---|
| 1226 | #define DIJOFS_BUTTON25 DIJOFS_BUTTON(25)
|
---|
| 1227 | #define DIJOFS_BUTTON26 DIJOFS_BUTTON(26)
|
---|
| 1228 | #define DIJOFS_BUTTON27 DIJOFS_BUTTON(27)
|
---|
| 1229 | #define DIJOFS_BUTTON28 DIJOFS_BUTTON(28)
|
---|
| 1230 | #define DIJOFS_BUTTON29 DIJOFS_BUTTON(29)
|
---|
| 1231 | #define DIJOFS_BUTTON30 DIJOFS_BUTTON(30)
|
---|
| 1232 | #define DIJOFS_BUTTON31 DIJOFS_BUTTON(31)
|
---|
| 1233 | #endif /* DIRECTINPUT_VERSION >= 0x0500 */
|
---|
| 1234 |
|
---|
| 1235 | /* DInput 7 structures, types */
|
---|
| 1236 | #if(DIRECTINPUT_VERSION >= 0x0700)
|
---|
| 1237 | typedef struct DIFILEEFFECT {
|
---|
| 1238 | DWORD dwSize;
|
---|
| 1239 | GUID GuidEffect;
|
---|
| 1240 | LPCDIEFFECT lpDiEffect;
|
---|
| 1241 | CHAR szFriendlyName[MAX_PATH];
|
---|
| 1242 | } DIFILEEFFECT, *LPDIFILEEFFECT;
|
---|
| 1243 |
|
---|
| 1244 | typedef const DIFILEEFFECT *LPCDIFILEEFFECT;
|
---|
| 1245 | typedef WINBOOL (CALLBACK *LPDIENUMEFFECTSINFILECALLBACK)(LPCDIFILEEFFECT , LPVOID);
|
---|
| 1246 | #endif /* DIRECTINPUT_VERSION >= 0x0700 */
|
---|
| 1247 |
|
---|
| 1248 | /* DInput 8 structures and types */
|
---|
| 1249 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 1250 | typedef struct _DIACTIONA {
|
---|
| 1251 | UINT_PTR uAppData;
|
---|
| 1252 | DWORD dwSemantic;
|
---|
| 1253 | DWORD dwFlags;
|
---|
| 1254 | __GNU_EXTENSION union {
|
---|
| 1255 | LPCSTR lptszActionName;
|
---|
| 1256 | UINT uResIdString;
|
---|
| 1257 | } DUMMYUNIONNAME;
|
---|
| 1258 | GUID guidInstance;
|
---|
| 1259 | DWORD dwObjID;
|
---|
| 1260 | DWORD dwHow;
|
---|
| 1261 | } DIACTIONA, *LPDIACTIONA;
|
---|
| 1262 | typedef const DIACTIONA *LPCDIACTIONA;
|
---|
| 1263 |
|
---|
| 1264 | typedef struct _DIACTIONW {
|
---|
| 1265 | UINT_PTR uAppData;
|
---|
| 1266 | DWORD dwSemantic;
|
---|
| 1267 | DWORD dwFlags;
|
---|
| 1268 | __GNU_EXTENSION union {
|
---|
| 1269 | LPCWSTR lptszActionName;
|
---|
| 1270 | UINT uResIdString;
|
---|
| 1271 | } DUMMYUNIONNAME;
|
---|
| 1272 | GUID guidInstance;
|
---|
| 1273 | DWORD dwObjID;
|
---|
| 1274 | DWORD dwHow;
|
---|
| 1275 | } DIACTIONW, *LPDIACTIONW;
|
---|
| 1276 | typedef const DIACTIONW *LPCDIACTIONW;
|
---|
| 1277 |
|
---|
| 1278 | DECL_WINELIB_TYPE_AW(DIACTION)
|
---|
| 1279 | DECL_WINELIB_TYPE_AW(LPDIACTION)
|
---|
| 1280 | DECL_WINELIB_TYPE_AW(LPCDIACTION)
|
---|
| 1281 |
|
---|
| 1282 | #define DIA_FORCEFEEDBACK 0x00000001
|
---|
| 1283 | #define DIA_APPMAPPED 0x00000002
|
---|
| 1284 | #define DIA_APPNOMAP 0x00000004
|
---|
| 1285 | #define DIA_NORANGE 0x00000008
|
---|
| 1286 | #define DIA_APPFIXED 0x00000010
|
---|
| 1287 |
|
---|
| 1288 | #define DIAH_UNMAPPED 0x00000000
|
---|
| 1289 | #define DIAH_USERCONFIG 0x00000001
|
---|
| 1290 | #define DIAH_APPREQUESTED 0x00000002
|
---|
| 1291 | #define DIAH_HWAPP 0x00000004
|
---|
| 1292 | #define DIAH_HWDEFAULT 0x00000008
|
---|
| 1293 | #define DIAH_DEFAULT 0x00000020
|
---|
| 1294 | #define DIAH_ERROR 0x80000000
|
---|
| 1295 |
|
---|
| 1296 | typedef struct _DIACTIONFORMATA {
|
---|
| 1297 | DWORD dwSize;
|
---|
| 1298 | DWORD dwActionSize;
|
---|
| 1299 | DWORD dwDataSize;
|
---|
| 1300 | DWORD dwNumActions;
|
---|
| 1301 | LPDIACTIONA rgoAction;
|
---|
| 1302 | GUID guidActionMap;
|
---|
| 1303 | DWORD dwGenre;
|
---|
| 1304 | DWORD dwBufferSize;
|
---|
| 1305 | LONG lAxisMin;
|
---|
| 1306 | LONG lAxisMax;
|
---|
| 1307 | HINSTANCE hInstString;
|
---|
| 1308 | FILETIME ftTimeStamp;
|
---|
| 1309 | DWORD dwCRC;
|
---|
| 1310 | CHAR tszActionMap[MAX_PATH];
|
---|
| 1311 | } DIACTIONFORMATA, *LPDIACTIONFORMATA;
|
---|
| 1312 | typedef const DIACTIONFORMATA *LPCDIACTIONFORMATA;
|
---|
| 1313 |
|
---|
| 1314 | typedef struct _DIACTIONFORMATW {
|
---|
| 1315 | DWORD dwSize;
|
---|
| 1316 | DWORD dwActionSize;
|
---|
| 1317 | DWORD dwDataSize;
|
---|
| 1318 | DWORD dwNumActions;
|
---|
| 1319 | LPDIACTIONW rgoAction;
|
---|
| 1320 | GUID guidActionMap;
|
---|
| 1321 | DWORD dwGenre;
|
---|
| 1322 | DWORD dwBufferSize;
|
---|
| 1323 | LONG lAxisMin;
|
---|
| 1324 | LONG lAxisMax;
|
---|
| 1325 | HINSTANCE hInstString;
|
---|
| 1326 | FILETIME ftTimeStamp;
|
---|
| 1327 | DWORD dwCRC;
|
---|
| 1328 | WCHAR tszActionMap[MAX_PATH];
|
---|
| 1329 | } DIACTIONFORMATW, *LPDIACTIONFORMATW;
|
---|
| 1330 | typedef const DIACTIONFORMATW *LPCDIACTIONFORMATW;
|
---|
| 1331 |
|
---|
| 1332 | DECL_WINELIB_TYPE_AW(DIACTIONFORMAT)
|
---|
| 1333 | DECL_WINELIB_TYPE_AW(LPDIACTIONFORMAT)
|
---|
| 1334 | DECL_WINELIB_TYPE_AW(LPCDIACTIONFORMAT)
|
---|
| 1335 |
|
---|
| 1336 | #define DIAFTS_NEWDEVICELOW 0xFFFFFFFF
|
---|
| 1337 | #define DIAFTS_NEWDEVICEHIGH 0xFFFFFFFF
|
---|
| 1338 | #define DIAFTS_UNUSEDDEVICELOW 0x00000000
|
---|
| 1339 | #define DIAFTS_UNUSEDDEVICEHIGH 0x00000000
|
---|
| 1340 |
|
---|
| 1341 | #define DIDBAM_DEFAULT 0x00000000
|
---|
| 1342 | #define DIDBAM_PRESERVE 0x00000001
|
---|
| 1343 | #define DIDBAM_INITIALIZE 0x00000002
|
---|
| 1344 | #define DIDBAM_HWDEFAULTS 0x00000004
|
---|
| 1345 |
|
---|
| 1346 | #define DIDSAM_DEFAULT 0x00000000
|
---|
| 1347 | #define DIDSAM_NOUSER 0x00000001
|
---|
| 1348 | #define DIDSAM_FORCESAVE 0x00000002
|
---|
| 1349 |
|
---|
| 1350 | #define DICD_DEFAULT 0x00000000
|
---|
| 1351 | #define DICD_EDIT 0x00000001
|
---|
| 1352 |
|
---|
| 1353 | #ifndef D3DCOLOR_DEFINED
|
---|
| 1354 | typedef DWORD D3DCOLOR;
|
---|
| 1355 | #define D3DCOLOR_DEFINED
|
---|
| 1356 | #endif
|
---|
| 1357 |
|
---|
| 1358 | typedef struct _DICOLORSET {
|
---|
| 1359 | DWORD dwSize;
|
---|
| 1360 | D3DCOLOR cTextFore;
|
---|
| 1361 | D3DCOLOR cTextHighlight;
|
---|
| 1362 | D3DCOLOR cCalloutLine;
|
---|
| 1363 | D3DCOLOR cCalloutHighlight;
|
---|
| 1364 | D3DCOLOR cBorder;
|
---|
| 1365 | D3DCOLOR cControlFill;
|
---|
| 1366 | D3DCOLOR cHighlightFill;
|
---|
| 1367 | D3DCOLOR cAreaFill;
|
---|
| 1368 | } DICOLORSET, *LPDICOLORSET;
|
---|
| 1369 | typedef const DICOLORSET *LPCDICOLORSET;
|
---|
| 1370 |
|
---|
| 1371 | typedef struct _DICONFIGUREDEVICESPARAMSA {
|
---|
| 1372 | DWORD dwSize;
|
---|
| 1373 | DWORD dwcUsers;
|
---|
| 1374 | LPSTR lptszUserNames;
|
---|
| 1375 | DWORD dwcFormats;
|
---|
| 1376 | LPDIACTIONFORMATA lprgFormats;
|
---|
| 1377 | HWND hwnd;
|
---|
| 1378 | DICOLORSET dics;
|
---|
| 1379 | LPUNKNOWN lpUnkDDSTarget;
|
---|
| 1380 | } DICONFIGUREDEVICESPARAMSA, *LPDICONFIGUREDEVICESPARAMSA;
|
---|
| 1381 | typedef const DICONFIGUREDEVICESPARAMSA *LPCDICONFIGUREDEVICESPARAMSA;
|
---|
| 1382 |
|
---|
| 1383 | typedef struct _DICONFIGUREDEVICESPARAMSW {
|
---|
| 1384 | DWORD dwSize;
|
---|
| 1385 | DWORD dwcUsers;
|
---|
| 1386 | LPWSTR lptszUserNames;
|
---|
| 1387 | DWORD dwcFormats;
|
---|
| 1388 | LPDIACTIONFORMATW lprgFormats;
|
---|
| 1389 | HWND hwnd;
|
---|
| 1390 | DICOLORSET dics;
|
---|
| 1391 | LPUNKNOWN lpUnkDDSTarget;
|
---|
| 1392 | } DICONFIGUREDEVICESPARAMSW, *LPDICONFIGUREDEVICESPARAMSW;
|
---|
| 1393 | typedef const DICONFIGUREDEVICESPARAMSW *LPCDICONFIGUREDEVICESPARAMSW;
|
---|
| 1394 |
|
---|
| 1395 | DECL_WINELIB_TYPE_AW(DICONFIGUREDEVICESPARAMS)
|
---|
| 1396 | DECL_WINELIB_TYPE_AW(LPDICONFIGUREDEVICESPARAMS)
|
---|
| 1397 | DECL_WINELIB_TYPE_AW(LPCDICONFIGUREDEVICESPARAMS)
|
---|
| 1398 |
|
---|
| 1399 | #define DIDIFT_CONFIGURATION 0x00000001
|
---|
| 1400 | #define DIDIFT_OVERLAY 0x00000002
|
---|
| 1401 |
|
---|
| 1402 | #define DIDAL_CENTERED 0x00000000
|
---|
| 1403 | #define DIDAL_LEFTALIGNED 0x00000001
|
---|
| 1404 | #define DIDAL_RIGHTALIGNED 0x00000002
|
---|
| 1405 | #define DIDAL_MIDDLE 0x00000000
|
---|
| 1406 | #define DIDAL_TOPALIGNED 0x00000004
|
---|
| 1407 | #define DIDAL_BOTTOMALIGNED 0x00000008
|
---|
| 1408 |
|
---|
| 1409 | typedef struct _DIDEVICEIMAGEINFOA {
|
---|
| 1410 | CHAR tszImagePath[MAX_PATH];
|
---|
| 1411 | DWORD dwFlags;
|
---|
| 1412 | DWORD dwViewID;
|
---|
| 1413 | RECT rcOverlay;
|
---|
| 1414 | DWORD dwObjID;
|
---|
| 1415 | DWORD dwcValidPts;
|
---|
| 1416 | POINT rgptCalloutLine[5];
|
---|
| 1417 | RECT rcCalloutRect;
|
---|
| 1418 | DWORD dwTextAlign;
|
---|
| 1419 | } DIDEVICEIMAGEINFOA, *LPDIDEVICEIMAGEINFOA;
|
---|
| 1420 | typedef const DIDEVICEIMAGEINFOA *LPCDIDEVICEIMAGEINFOA;
|
---|
| 1421 |
|
---|
| 1422 | typedef struct _DIDEVICEIMAGEINFOW {
|
---|
| 1423 | WCHAR tszImagePath[MAX_PATH];
|
---|
| 1424 | DWORD dwFlags;
|
---|
| 1425 | DWORD dwViewID;
|
---|
| 1426 | RECT rcOverlay;
|
---|
| 1427 | DWORD dwObjID;
|
---|
| 1428 | DWORD dwcValidPts;
|
---|
| 1429 | POINT rgptCalloutLine[5];
|
---|
| 1430 | RECT rcCalloutRect;
|
---|
| 1431 | DWORD dwTextAlign;
|
---|
| 1432 | } DIDEVICEIMAGEINFOW, *LPDIDEVICEIMAGEINFOW;
|
---|
| 1433 | typedef const DIDEVICEIMAGEINFOW *LPCDIDEVICEIMAGEINFOW;
|
---|
| 1434 |
|
---|
| 1435 | DECL_WINELIB_TYPE_AW(DIDEVICEIMAGEINFO)
|
---|
| 1436 | DECL_WINELIB_TYPE_AW(LPDIDEVICEIMAGEINFO)
|
---|
| 1437 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEIMAGEINFO)
|
---|
| 1438 |
|
---|
| 1439 | typedef struct _DIDEVICEIMAGEINFOHEADERA {
|
---|
| 1440 | DWORD dwSize;
|
---|
| 1441 | DWORD dwSizeImageInfo;
|
---|
| 1442 | DWORD dwcViews;
|
---|
| 1443 | DWORD dwcButtons;
|
---|
| 1444 | DWORD dwcAxes;
|
---|
| 1445 | DWORD dwcPOVs;
|
---|
| 1446 | DWORD dwBufferSize;
|
---|
| 1447 | DWORD dwBufferUsed;
|
---|
| 1448 | LPDIDEVICEIMAGEINFOA lprgImageInfoArray;
|
---|
| 1449 | } DIDEVICEIMAGEINFOHEADERA, *LPDIDEVICEIMAGEINFOHEADERA;
|
---|
| 1450 | typedef const DIDEVICEIMAGEINFOHEADERA *LPCDIDEVICEIMAGEINFOHEADERA;
|
---|
| 1451 |
|
---|
| 1452 | typedef struct _DIDEVICEIMAGEINFOHEADERW {
|
---|
| 1453 | DWORD dwSize;
|
---|
| 1454 | DWORD dwSizeImageInfo;
|
---|
| 1455 | DWORD dwcViews;
|
---|
| 1456 | DWORD dwcButtons;
|
---|
| 1457 | DWORD dwcAxes;
|
---|
| 1458 | DWORD dwcPOVs;
|
---|
| 1459 | DWORD dwBufferSize;
|
---|
| 1460 | DWORD dwBufferUsed;
|
---|
| 1461 | LPDIDEVICEIMAGEINFOW lprgImageInfoArray;
|
---|
| 1462 | } DIDEVICEIMAGEINFOHEADERW, *LPDIDEVICEIMAGEINFOHEADERW;
|
---|
| 1463 | typedef const DIDEVICEIMAGEINFOHEADERW *LPCDIDEVICEIMAGEINFOHEADERW;
|
---|
| 1464 |
|
---|
| 1465 | DECL_WINELIB_TYPE_AW(DIDEVICEIMAGEINFOHEADER)
|
---|
| 1466 | DECL_WINELIB_TYPE_AW(LPDIDEVICEIMAGEINFOHEADER)
|
---|
| 1467 | DECL_WINELIB_TYPE_AW(LPCDIDEVICEIMAGEINFOHEADER)
|
---|
| 1468 |
|
---|
| 1469 | #endif /* DI8 */
|
---|
| 1470 |
|
---|
| 1471 |
|
---|
| 1472 | /*****************************************************************************
|
---|
| 1473 | * IDirectInputEffect interface
|
---|
| 1474 | */
|
---|
| 1475 | #if (DIRECTINPUT_VERSION >= 0x0500)
|
---|
| 1476 | #undef INTERFACE
|
---|
| 1477 | #define INTERFACE IDirectInputEffect
|
---|
| 1478 | DECLARE_INTERFACE_(IDirectInputEffect,IUnknown)
|
---|
| 1479 | {
|
---|
| 1480 | /*** IUnknown methods ***/
|
---|
| 1481 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1482 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1483 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1484 | /*** IDirectInputEffect methods ***/
|
---|
| 1485 | STDMETHOD(Initialize)(THIS_ HINSTANCE, DWORD, REFGUID) PURE;
|
---|
| 1486 | STDMETHOD(GetEffectGuid)(THIS_ LPGUID) PURE;
|
---|
| 1487 | STDMETHOD(GetParameters)(THIS_ LPDIEFFECT, DWORD) PURE;
|
---|
| 1488 | STDMETHOD(SetParameters)(THIS_ LPCDIEFFECT, DWORD) PURE;
|
---|
| 1489 | STDMETHOD(Start)(THIS_ DWORD, DWORD) PURE;
|
---|
| 1490 | STDMETHOD(Stop)(THIS) PURE;
|
---|
| 1491 | STDMETHOD(GetEffectStatus)(THIS_ LPDWORD) PURE;
|
---|
| 1492 | STDMETHOD(Download)(THIS) PURE;
|
---|
| 1493 | STDMETHOD(Unload)(THIS) PURE;
|
---|
| 1494 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE) PURE;
|
---|
| 1495 | };
|
---|
| 1496 |
|
---|
| 1497 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 1498 | /*** IUnknown methods ***/
|
---|
| 1499 | #define IDirectInputEffect_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 1500 | #define IDirectInputEffect_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 1501 | #define IDirectInputEffect_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 1502 | /*** IDirectInputEffect methods ***/
|
---|
| 1503 | #define IDirectInputEffect_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
| 1504 | #define IDirectInputEffect_GetEffectGuid(p,a) (p)->lpVtbl->GetEffectGuid(p,a)
|
---|
| 1505 | #define IDirectInputEffect_GetParameters(p,a,b) (p)->lpVtbl->GetParameters(p,a,b)
|
---|
| 1506 | #define IDirectInputEffect_SetParameters(p,a,b) (p)->lpVtbl->SetParameters(p,a,b)
|
---|
| 1507 | #define IDirectInputEffect_Start(p,a,b) (p)->lpVtbl->Start(p,a,b)
|
---|
| 1508 | #define IDirectInputEffect_Stop(p) (p)->lpVtbl->Stop(p)
|
---|
| 1509 | #define IDirectInputEffect_GetEffectStatus(p,a) (p)->lpVtbl->GetEffectStatus(p,a)
|
---|
| 1510 | #define IDirectInputEffect_Download(p) (p)->lpVtbl->Download(p)
|
---|
| 1511 | #define IDirectInputEffect_Unload(p) (p)->lpVtbl->Unload(p)
|
---|
| 1512 | #define IDirectInputEffect_Escape(p,a) (p)->lpVtbl->Escape(p,a)
|
---|
| 1513 | #else
|
---|
| 1514 | /*** IUnknown methods ***/
|
---|
| 1515 | #define IDirectInputEffect_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 1516 | #define IDirectInputEffect_AddRef(p) (p)->AddRef()
|
---|
| 1517 | #define IDirectInputEffect_Release(p) (p)->Release()
|
---|
| 1518 | /*** IDirectInputEffect methods ***/
|
---|
| 1519 | #define IDirectInputEffect_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
| 1520 | #define IDirectInputEffect_GetEffectGuid(p,a) (p)->GetEffectGuid(a)
|
---|
| 1521 | #define IDirectInputEffect_GetParameters(p,a,b) (p)->GetParameters(a,b)
|
---|
| 1522 | #define IDirectInputEffect_SetParameters(p,a,b) (p)->SetParameters(a,b)
|
---|
| 1523 | #define IDirectInputEffect_Start(p,a,b) (p)->Start(a,b)
|
---|
| 1524 | #define IDirectInputEffect_Stop(p) (p)->Stop()
|
---|
| 1525 | #define IDirectInputEffect_GetEffectStatus(p,a) (p)->GetEffectStatus(a)
|
---|
| 1526 | #define IDirectInputEffect_Download(p) (p)->Download()
|
---|
| 1527 | #define IDirectInputEffect_Unload(p) (p)->Unload()
|
---|
| 1528 | #define IDirectInputEffect_Escape(p,a) (p)->Escape(a)
|
---|
| 1529 | #endif
|
---|
| 1530 |
|
---|
| 1531 | #endif /* DI5 */
|
---|
| 1532 |
|
---|
| 1533 |
|
---|
| 1534 | /*****************************************************************************
|
---|
| 1535 | * IDirectInputDeviceA interface
|
---|
| 1536 | */
|
---|
| 1537 | #undef INTERFACE
|
---|
| 1538 | #define INTERFACE IDirectInputDeviceA
|
---|
| 1539 | DECLARE_INTERFACE_(IDirectInputDeviceA,IUnknown)
|
---|
| 1540 | {
|
---|
| 1541 | /*** IUnknown methods ***/
|
---|
| 1542 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1543 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1544 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1545 | /*** IDirectInputDeviceA methods ***/
|
---|
| 1546 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
| 1547 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 1548 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
| 1549 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
| 1550 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
| 1551 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
| 1552 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
| 1553 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
| 1554 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
| 1555 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
| 1556 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
| 1557 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
| 1558 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE;
|
---|
| 1559 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 1560 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
| 1561 | };
|
---|
| 1562 |
|
---|
| 1563 | /*****************************************************************************
|
---|
| 1564 | * IDirectInputDeviceW interface
|
---|
| 1565 | */
|
---|
| 1566 | #undef INTERFACE
|
---|
| 1567 | #define INTERFACE IDirectInputDeviceW
|
---|
| 1568 | DECLARE_INTERFACE_(IDirectInputDeviceW,IUnknown)
|
---|
| 1569 | {
|
---|
| 1570 | /*** IUnknown methods ***/
|
---|
| 1571 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1572 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1573 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1574 | /*** IDirectInputDeviceW methods ***/
|
---|
| 1575 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
| 1576 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 1577 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
| 1578 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
| 1579 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
| 1580 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
| 1581 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
| 1582 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
| 1583 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
| 1584 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
| 1585 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
| 1586 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
| 1587 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE;
|
---|
| 1588 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 1589 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
| 1590 | };
|
---|
| 1591 |
|
---|
| 1592 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 1593 | /*** IUnknown methods ***/
|
---|
| 1594 | #define IDirectInputDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 1595 | #define IDirectInputDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 1596 | #define IDirectInputDevice_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 1597 | /*** IDirectInputDevice methods ***/
|
---|
| 1598 | #define IDirectInputDevice_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
|
---|
| 1599 | #define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
|
---|
| 1600 | #define IDirectInputDevice_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
|
---|
| 1601 | #define IDirectInputDevice_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
|
---|
| 1602 | #define IDirectInputDevice_Acquire(p) (p)->lpVtbl->Acquire(p)
|
---|
| 1603 | #define IDirectInputDevice_Unacquire(p) (p)->lpVtbl->Unacquire(p)
|
---|
| 1604 | #define IDirectInputDevice_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
|
---|
| 1605 | #define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
|
---|
| 1606 | #define IDirectInputDevice_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
|
---|
| 1607 | #define IDirectInputDevice_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
|
---|
| 1608 | #define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
| 1609 | #define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
|
---|
| 1610 | #define IDirectInputDevice_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
|
---|
| 1611 | #define IDirectInputDevice_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
| 1612 | #define IDirectInputDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
| 1613 | #else
|
---|
| 1614 | /*** IUnknown methods ***/
|
---|
| 1615 | #define IDirectInputDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 1616 | #define IDirectInputDevice_AddRef(p) (p)->AddRef()
|
---|
| 1617 | #define IDirectInputDevice_Release(p) (p)->Release()
|
---|
| 1618 | /*** IDirectInputDevice methods ***/
|
---|
| 1619 | #define IDirectInputDevice_GetCapabilities(p,a) (p)->GetCapabilities(a)
|
---|
| 1620 | #define IDirectInputDevice_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
|
---|
| 1621 | #define IDirectInputDevice_GetProperty(p,a,b) (p)->GetProperty(a,b)
|
---|
| 1622 | #define IDirectInputDevice_SetProperty(p,a,b) (p)->SetProperty(a,b)
|
---|
| 1623 | #define IDirectInputDevice_Acquire(p) (p)->Acquire()
|
---|
| 1624 | #define IDirectInputDevice_Unacquire(p) (p)->Unacquire()
|
---|
| 1625 | #define IDirectInputDevice_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
|
---|
| 1626 | #define IDirectInputDevice_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
|
---|
| 1627 | #define IDirectInputDevice_SetDataFormat(p,a) (p)->SetDataFormat(a)
|
---|
| 1628 | #define IDirectInputDevice_SetEventNotification(p,a) (p)->SetEventNotification(a)
|
---|
| 1629 | #define IDirectInputDevice_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
| 1630 | #define IDirectInputDevice_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
|
---|
| 1631 | #define IDirectInputDevice_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
|
---|
| 1632 | #define IDirectInputDevice_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
| 1633 | #define IDirectInputDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
| 1634 | #endif
|
---|
| 1635 |
|
---|
| 1636 |
|
---|
| 1637 | #if (DIRECTINPUT_VERSION >= 0x0500)
|
---|
| 1638 | /*****************************************************************************
|
---|
| 1639 | * IDirectInputDevice2A interface
|
---|
| 1640 | */
|
---|
| 1641 | #undef INTERFACE
|
---|
| 1642 | #define INTERFACE IDirectInputDevice2A
|
---|
| 1643 | DECLARE_INTERFACE_(IDirectInputDevice2A,IDirectInputDeviceA)
|
---|
| 1644 | {
|
---|
| 1645 | /*** IUnknown methods ***/
|
---|
| 1646 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1647 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1648 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1649 | /*** IDirectInputDeviceA methods ***/
|
---|
| 1650 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
| 1651 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 1652 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
| 1653 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
| 1654 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
| 1655 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
| 1656 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
| 1657 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
| 1658 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
| 1659 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
| 1660 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
| 1661 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
| 1662 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE;
|
---|
| 1663 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 1664 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
| 1665 | /*** IDirectInputDevice2A methods ***/
|
---|
| 1666 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
| 1667 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
| 1668 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE;
|
---|
| 1669 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
| 1670 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
| 1671 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
| 1672 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
| 1673 | STDMETHOD(Poll)(THIS) PURE;
|
---|
| 1674 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
| 1675 | };
|
---|
| 1676 |
|
---|
| 1677 | /*****************************************************************************
|
---|
| 1678 | * IDirectInputDevice2W interface
|
---|
| 1679 | */
|
---|
| 1680 | #undef INTERFACE
|
---|
| 1681 | #define INTERFACE IDirectInputDevice2W
|
---|
| 1682 | DECLARE_INTERFACE_(IDirectInputDevice2W,IDirectInputDeviceW)
|
---|
| 1683 | {
|
---|
| 1684 | /*** IUnknown methods ***/
|
---|
| 1685 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1686 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1687 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1688 | /*** IDirectInputDeviceW methods ***/
|
---|
| 1689 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
| 1690 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 1691 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
| 1692 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
| 1693 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
| 1694 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
| 1695 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
| 1696 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
| 1697 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
| 1698 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
| 1699 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
| 1700 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
| 1701 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE;
|
---|
| 1702 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 1703 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
| 1704 | /*** IDirectInputDevice2W methods ***/
|
---|
| 1705 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
| 1706 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
| 1707 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE;
|
---|
| 1708 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
| 1709 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
| 1710 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
| 1711 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
| 1712 | STDMETHOD(Poll)(THIS) PURE;
|
---|
| 1713 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
| 1714 | };
|
---|
| 1715 |
|
---|
| 1716 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 1717 | /*** IUnknown methods ***/
|
---|
| 1718 | #define IDirectInputDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 1719 | #define IDirectInputDevice2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 1720 | #define IDirectInputDevice2_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 1721 | /*** IDirectInputDevice methods ***/
|
---|
| 1722 | #define IDirectInputDevice2_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
|
---|
| 1723 | #define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
|
---|
| 1724 | #define IDirectInputDevice2_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
|
---|
| 1725 | #define IDirectInputDevice2_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
|
---|
| 1726 | #define IDirectInputDevice2_Acquire(p) (p)->lpVtbl->Acquire(p)
|
---|
| 1727 | #define IDirectInputDevice2_Unacquire(p) (p)->lpVtbl->Unacquire(p)
|
---|
| 1728 | #define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
|
---|
| 1729 | #define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
|
---|
| 1730 | #define IDirectInputDevice2_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
|
---|
| 1731 | #define IDirectInputDevice2_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
|
---|
| 1732 | #define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
| 1733 | #define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
|
---|
| 1734 | #define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
|
---|
| 1735 | #define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
| 1736 | #define IDirectInputDevice2_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
| 1737 | /*** IDirectInputDevice2 methods ***/
|
---|
| 1738 | #define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
|
---|
| 1739 | #define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
|
---|
| 1740 | #define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
|
---|
| 1741 | #define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
|
---|
| 1742 | #define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
|
---|
| 1743 | #define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
|
---|
| 1744 | #define IDirectInputDevice2_Escape(p,a) (p)->lpVtbl->Escape(p,a)
|
---|
| 1745 | #define IDirectInputDevice2_Poll(p) (p)->lpVtbl->Poll(p)
|
---|
| 1746 | #define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
|
---|
| 1747 | #else
|
---|
| 1748 | /*** IUnknown methods ***/
|
---|
| 1749 | #define IDirectInputDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 1750 | #define IDirectInputDevice2_AddRef(p) (p)->AddRef()
|
---|
| 1751 | #define IDirectInputDevice2_Release(p) (p)->Release()
|
---|
| 1752 | /*** IDirectInputDevice methods ***/
|
---|
| 1753 | #define IDirectInputDevice2_GetCapabilities(p,a) (p)->GetCapabilities(a)
|
---|
| 1754 | #define IDirectInputDevice2_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
|
---|
| 1755 | #define IDirectInputDevice2_GetProperty(p,a,b) (p)->GetProperty(a,b)
|
---|
| 1756 | #define IDirectInputDevice2_SetProperty(p,a,b) (p)->SetProperty(a,b)
|
---|
| 1757 | #define IDirectInputDevice2_Acquire(p) (p)->Acquire()
|
---|
| 1758 | #define IDirectInputDevice2_Unacquire(p) (p)->Unacquire()
|
---|
| 1759 | #define IDirectInputDevice2_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
|
---|
| 1760 | #define IDirectInputDevice2_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
|
---|
| 1761 | #define IDirectInputDevice2_SetDataFormat(p,a) (p)->SetDataFormat(a)
|
---|
| 1762 | #define IDirectInputDevice2_SetEventNotification(p,a) (p)->SetEventNotification(a)
|
---|
| 1763 | #define IDirectInputDevice2_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
| 1764 | #define IDirectInputDevice2_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
|
---|
| 1765 | #define IDirectInputDevice2_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
|
---|
| 1766 | #define IDirectInputDevice2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
| 1767 | #define IDirectInputDevice2_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
| 1768 | /*** IDirectInputDevice2 methods ***/
|
---|
| 1769 | #define IDirectInputDevice2_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
|
---|
| 1770 | #define IDirectInputDevice2_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
|
---|
| 1771 | #define IDirectInputDevice2_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
|
---|
| 1772 | #define IDirectInputDevice2_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
|
---|
| 1773 | #define IDirectInputDevice2_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
|
---|
| 1774 | #define IDirectInputDevice2_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
|
---|
| 1775 | #define IDirectInputDevice2_Escape(p,a) (p)->Escape(a)
|
---|
| 1776 | #define IDirectInputDevice2_Poll(p) (p)->Poll()
|
---|
| 1777 | #define IDirectInputDevice2_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
|
---|
| 1778 | #endif
|
---|
| 1779 | #endif /* DI5 */
|
---|
| 1780 |
|
---|
| 1781 | #if DIRECTINPUT_VERSION >= 0x0700
|
---|
| 1782 | /*****************************************************************************
|
---|
| 1783 | * IDirectInputDevice7A interface
|
---|
| 1784 | */
|
---|
| 1785 | #undef INTERFACE
|
---|
| 1786 | #define INTERFACE IDirectInputDevice7A
|
---|
| 1787 | DECLARE_INTERFACE_(IDirectInputDevice7A,IDirectInputDevice2A)
|
---|
| 1788 | {
|
---|
| 1789 | /*** IUnknown methods ***/
|
---|
| 1790 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1791 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1792 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1793 | /*** IDirectInputDeviceA methods ***/
|
---|
| 1794 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
| 1795 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 1796 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
| 1797 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
| 1798 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
| 1799 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
| 1800 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
| 1801 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
| 1802 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
| 1803 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
| 1804 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
| 1805 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
| 1806 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE;
|
---|
| 1807 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 1808 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
| 1809 | /*** IDirectInputDevice2A methods ***/
|
---|
| 1810 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
| 1811 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
| 1812 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE;
|
---|
| 1813 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
| 1814 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
| 1815 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
| 1816 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
| 1817 | STDMETHOD(Poll)(THIS) PURE;
|
---|
| 1818 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
| 1819 | /*** IDirectInputDevice7A methods ***/
|
---|
| 1820 | STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE;
|
---|
| 1821 | STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE;
|
---|
| 1822 | };
|
---|
| 1823 |
|
---|
| 1824 | /*****************************************************************************
|
---|
| 1825 | * IDirectInputDevice7W interface
|
---|
| 1826 | */
|
---|
| 1827 | #undef INTERFACE
|
---|
| 1828 | #define INTERFACE IDirectInputDevice7W
|
---|
| 1829 | DECLARE_INTERFACE_(IDirectInputDevice7W,IDirectInputDevice2W)
|
---|
| 1830 | {
|
---|
| 1831 | /*** IUnknown methods ***/
|
---|
| 1832 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1833 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1834 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1835 | /*** IDirectInputDeviceW methods ***/
|
---|
| 1836 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
| 1837 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 1838 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
| 1839 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
| 1840 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
| 1841 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
| 1842 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
| 1843 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
| 1844 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
| 1845 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
| 1846 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
| 1847 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
| 1848 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE;
|
---|
| 1849 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 1850 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
| 1851 | /*** IDirectInputDevice2W methods ***/
|
---|
| 1852 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
| 1853 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
| 1854 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE;
|
---|
| 1855 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
| 1856 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
| 1857 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
| 1858 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
| 1859 | STDMETHOD(Poll)(THIS) PURE;
|
---|
| 1860 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
| 1861 | /*** IDirectInputDevice7W methods ***/
|
---|
| 1862 | STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE;
|
---|
| 1863 | STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE;
|
---|
| 1864 | };
|
---|
| 1865 |
|
---|
| 1866 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 1867 | /*** IUnknown methods ***/
|
---|
| 1868 | #define IDirectInputDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 1869 | #define IDirectInputDevice7_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 1870 | #define IDirectInputDevice7_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 1871 | /*** IDirectInputDevice methods ***/
|
---|
| 1872 | #define IDirectInputDevice7_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
|
---|
| 1873 | #define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
|
---|
| 1874 | #define IDirectInputDevice7_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
|
---|
| 1875 | #define IDirectInputDevice7_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
|
---|
| 1876 | #define IDirectInputDevice7_Acquire(p) (p)->lpVtbl->Acquire(p)
|
---|
| 1877 | #define IDirectInputDevice7_Unacquire(p) (p)->lpVtbl->Unacquire(p)
|
---|
| 1878 | #define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
|
---|
| 1879 | #define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
|
---|
| 1880 | #define IDirectInputDevice7_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
|
---|
| 1881 | #define IDirectInputDevice7_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
|
---|
| 1882 | #define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
| 1883 | #define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
|
---|
| 1884 | #define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
|
---|
| 1885 | #define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
| 1886 | #define IDirectInputDevice7_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
| 1887 | /*** IDirectInputDevice2 methods ***/
|
---|
| 1888 | #define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
|
---|
| 1889 | #define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
|
---|
| 1890 | #define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
|
---|
| 1891 | #define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
|
---|
| 1892 | #define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
|
---|
| 1893 | #define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
|
---|
| 1894 | #define IDirectInputDevice7_Escape(p,a) (p)->lpVtbl->Escape(p,a)
|
---|
| 1895 | #define IDirectInputDevice7_Poll(p) (p)->lpVtbl->Poll(p)
|
---|
| 1896 | #define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
|
---|
| 1897 | /*** IDirectInputDevice7 methods ***/
|
---|
| 1898 | #define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d)
|
---|
| 1899 | #define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d)
|
---|
| 1900 | #else
|
---|
| 1901 | /*** IUnknown methods ***/
|
---|
| 1902 | #define IDirectInputDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 1903 | #define IDirectInputDevice7_AddRef(p) (p)->AddRef()
|
---|
| 1904 | #define IDirectInputDevice7_Release(p) (p)->Release()
|
---|
| 1905 | /*** IDirectInputDevice methods ***/
|
---|
| 1906 | #define IDirectInputDevice7_GetCapabilities(p,a) (p)->GetCapabilities(a)
|
---|
| 1907 | #define IDirectInputDevice7_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
|
---|
| 1908 | #define IDirectInputDevice7_GetProperty(p,a,b) (p)->GetProperty(a,b)
|
---|
| 1909 | #define IDirectInputDevice7_SetProperty(p,a,b) (p)->SetProperty(a,b)
|
---|
| 1910 | #define IDirectInputDevice7_Acquire(p) (p)->Acquire()
|
---|
| 1911 | #define IDirectInputDevice7_Unacquire(p) (p)->Unacquire()
|
---|
| 1912 | #define IDirectInputDevice7_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
|
---|
| 1913 | #define IDirectInputDevice7_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
|
---|
| 1914 | #define IDirectInputDevice7_SetDataFormat(p,a) (p)->SetDataFormat(a)
|
---|
| 1915 | #define IDirectInputDevice7_SetEventNotification(p,a) (p)->SetEventNotification(a)
|
---|
| 1916 | #define IDirectInputDevice7_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
| 1917 | #define IDirectInputDevice7_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
|
---|
| 1918 | #define IDirectInputDevice7_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
|
---|
| 1919 | #define IDirectInputDevice7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
| 1920 | #define IDirectInputDevice7_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
| 1921 | /*** IDirectInputDevice2 methods ***/
|
---|
| 1922 | #define IDirectInputDevice7_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
|
---|
| 1923 | #define IDirectInputDevice7_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
|
---|
| 1924 | #define IDirectInputDevice7_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
|
---|
| 1925 | #define IDirectInputDevice7_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
|
---|
| 1926 | #define IDirectInputDevice7_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
|
---|
| 1927 | #define IDirectInputDevice7_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
|
---|
| 1928 | #define IDirectInputDevice7_Escape(p,a) (p)->Escape(a)
|
---|
| 1929 | #define IDirectInputDevice7_Poll(p) (p)->Poll()
|
---|
| 1930 | #define IDirectInputDevice7_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
|
---|
| 1931 | /*** IDirectInputDevice7 methods ***/
|
---|
| 1932 | #define IDirectInputDevice7_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d)
|
---|
| 1933 | #define IDirectInputDevice7_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d)
|
---|
| 1934 | #endif
|
---|
| 1935 |
|
---|
| 1936 | #endif /* DI7 */
|
---|
| 1937 |
|
---|
| 1938 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 1939 | /*****************************************************************************
|
---|
| 1940 | * IDirectInputDevice8A interface
|
---|
| 1941 | */
|
---|
| 1942 | #undef INTERFACE
|
---|
| 1943 | #define INTERFACE IDirectInputDevice8A
|
---|
| 1944 | DECLARE_INTERFACE_(IDirectInputDevice8A,IDirectInputDevice7A)
|
---|
| 1945 | {
|
---|
| 1946 | /*** IUnknown methods ***/
|
---|
| 1947 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1948 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1949 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1950 | /*** IDirectInputDeviceA methods ***/
|
---|
| 1951 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
| 1952 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 1953 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
| 1954 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
| 1955 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
| 1956 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
| 1957 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
| 1958 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
| 1959 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
| 1960 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
| 1961 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
| 1962 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEA pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
| 1963 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEA pdidi) PURE;
|
---|
| 1964 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 1965 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
| 1966 | /*** IDirectInputDevice2A methods ***/
|
---|
| 1967 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
| 1968 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKA lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
| 1969 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOA pdei, REFGUID rguid) PURE;
|
---|
| 1970 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
| 1971 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
| 1972 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
| 1973 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
| 1974 | STDMETHOD(Poll)(THIS) PURE;
|
---|
| 1975 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
| 1976 | /*** IDirectInputDevice7A methods ***/
|
---|
| 1977 | STDMETHOD(EnumEffectsInFile)(THIS_ LPCSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE;
|
---|
| 1978 | STDMETHOD(WriteEffectToFile)(THIS_ LPCSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE;
|
---|
| 1979 | /*** IDirectInputDevice8A methods ***/
|
---|
| 1980 | STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATA lpdiaf, LPCSTR lpszUserName, DWORD dwFlags) PURE;
|
---|
| 1981 | STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATA lpdiaf, LPCSTR lpszUserName, DWORD dwFlags) PURE;
|
---|
| 1982 | STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERA lpdiDevImageInfoHeader) PURE;
|
---|
| 1983 | };
|
---|
| 1984 |
|
---|
| 1985 | /*****************************************************************************
|
---|
| 1986 | * IDirectInputDevice8W interface
|
---|
| 1987 | */
|
---|
| 1988 | #undef INTERFACE
|
---|
| 1989 | #define INTERFACE IDirectInputDevice8W
|
---|
| 1990 | DECLARE_INTERFACE_(IDirectInputDevice8W,IDirectInputDevice7W)
|
---|
| 1991 | {
|
---|
| 1992 | /*** IUnknown methods ***/
|
---|
| 1993 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 1994 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 1995 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 1996 | /*** IDirectInputDeviceW methods ***/
|
---|
| 1997 | STDMETHOD(GetCapabilities)(THIS_ LPDIDEVCAPS lpDIDevCaps) PURE;
|
---|
| 1998 | STDMETHOD(EnumObjects)(THIS_ LPDIENUMDEVICEOBJECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 1999 | STDMETHOD(GetProperty)(THIS_ REFGUID rguidProp, LPDIPROPHEADER pdiph) PURE;
|
---|
| 2000 | STDMETHOD(SetProperty)(THIS_ REFGUID rguidProp, LPCDIPROPHEADER pdiph) PURE;
|
---|
| 2001 | STDMETHOD(Acquire)(THIS) PURE;
|
---|
| 2002 | STDMETHOD(Unacquire)(THIS) PURE;
|
---|
| 2003 | STDMETHOD(GetDeviceState)(THIS_ DWORD cbData, LPVOID lpvData) PURE;
|
---|
| 2004 | STDMETHOD(GetDeviceData)(THIS_ DWORD cbObjectData, LPDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD dwFlags) PURE;
|
---|
| 2005 | STDMETHOD(SetDataFormat)(THIS_ LPCDIDATAFORMAT lpdf) PURE;
|
---|
| 2006 | STDMETHOD(SetEventNotification)(THIS_ HANDLE hEvent) PURE;
|
---|
| 2007 | STDMETHOD(SetCooperativeLevel)(THIS_ HWND hwnd, DWORD dwFlags) PURE;
|
---|
| 2008 | STDMETHOD(GetObjectInfo)(THIS_ LPDIDEVICEOBJECTINSTANCEW pdidoi, DWORD dwObj, DWORD dwHow) PURE;
|
---|
| 2009 | STDMETHOD(GetDeviceInfo)(THIS_ LPDIDEVICEINSTANCEW pdidi) PURE;
|
---|
| 2010 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2011 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion, REFGUID rguid) PURE;
|
---|
| 2012 | /*** IDirectInputDevice2W methods ***/
|
---|
| 2013 | STDMETHOD(CreateEffect)(THIS_ REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter) PURE;
|
---|
| 2014 | STDMETHOD(EnumEffects)(THIS_ LPDIENUMEFFECTSCALLBACKW lpCallback, LPVOID pvRef, DWORD dwEffType) PURE;
|
---|
| 2015 | STDMETHOD(GetEffectInfo)(THIS_ LPDIEFFECTINFOW pdei, REFGUID rguid) PURE;
|
---|
| 2016 | STDMETHOD(GetForceFeedbackState)(THIS_ LPDWORD pdwOut) PURE;
|
---|
| 2017 | STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD dwFlags) PURE;
|
---|
| 2018 | STDMETHOD(EnumCreatedEffectObjects)(THIS_ LPDIENUMCREATEDEFFECTOBJECTSCALLBACK lpCallback, LPVOID pvRef, DWORD fl) PURE;
|
---|
| 2019 | STDMETHOD(Escape)(THIS_ LPDIEFFESCAPE pesc) PURE;
|
---|
| 2020 | STDMETHOD(Poll)(THIS) PURE;
|
---|
| 2021 | STDMETHOD(SendDeviceData)(THIS_ DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl) PURE;
|
---|
| 2022 | /*** IDirectInputDevice7W methods ***/
|
---|
| 2023 | STDMETHOD(EnumEffectsInFile)(THIS_ LPCWSTR lpszFileName,LPDIENUMEFFECTSINFILECALLBACK pec,LPVOID pvRef,DWORD dwFlags) PURE;
|
---|
| 2024 | STDMETHOD(WriteEffectToFile)(THIS_ LPCWSTR lpszFileName,DWORD dwEntries,LPDIFILEEFFECT rgDiFileEft,DWORD dwFlags) PURE;
|
---|
| 2025 | /*** IDirectInputDevice8W methods ***/
|
---|
| 2026 | STDMETHOD(BuildActionMap)(THIS_ LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) PURE;
|
---|
| 2027 | STDMETHOD(SetActionMap)(THIS_ LPDIACTIONFORMATW lpdiaf, LPCWSTR lpszUserName, DWORD dwFlags) PURE;
|
---|
| 2028 | STDMETHOD(GetImageInfo)(THIS_ LPDIDEVICEIMAGEINFOHEADERW lpdiDevImageInfoHeader) PURE;
|
---|
| 2029 | };
|
---|
| 2030 |
|
---|
| 2031 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 2032 | /*** IUnknown methods ***/
|
---|
| 2033 | #define IDirectInputDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 2034 | #define IDirectInputDevice8_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 2035 | #define IDirectInputDevice8_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 2036 | /*** IDirectInputDevice methods ***/
|
---|
| 2037 | #define IDirectInputDevice8_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
|
---|
| 2038 | #define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c)
|
---|
| 2039 | #define IDirectInputDevice8_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b)
|
---|
| 2040 | #define IDirectInputDevice8_SetProperty(p,a,b) (p)->lpVtbl->SetProperty(p,a,b)
|
---|
| 2041 | #define IDirectInputDevice8_Acquire(p) (p)->lpVtbl->Acquire(p)
|
---|
| 2042 | #define IDirectInputDevice8_Unacquire(p) (p)->lpVtbl->Unacquire(p)
|
---|
| 2043 | #define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->lpVtbl->GetDeviceState(p,a,b)
|
---|
| 2044 | #define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->lpVtbl->GetDeviceData(p,a,b,c,d)
|
---|
| 2045 | #define IDirectInputDevice8_SetDataFormat(p,a) (p)->lpVtbl->SetDataFormat(p,a)
|
---|
| 2046 | #define IDirectInputDevice8_SetEventNotification(p,a) (p)->lpVtbl->SetEventNotification(p,a)
|
---|
| 2047 | #define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
|
---|
| 2048 | #define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->lpVtbl->GetObjectInfo(p,a,b,c)
|
---|
| 2049 | #define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->lpVtbl->GetDeviceInfo(p,a)
|
---|
| 2050 | #define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
| 2051 | #define IDirectInputDevice8_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
---|
| 2052 | /*** IDirectInputDevice2 methods ***/
|
---|
| 2053 | #define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->lpVtbl->CreateEffect(p,a,b,c,d)
|
---|
| 2054 | #define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->lpVtbl->EnumEffects(p,a,b,c)
|
---|
| 2055 | #define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->lpVtbl->GetEffectInfo(p,a,b)
|
---|
| 2056 | #define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->lpVtbl->GetForceFeedbackState(p,a)
|
---|
| 2057 | #define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->lpVtbl->SendForceFeedbackCommand(p,a)
|
---|
| 2058 | #define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->lpVtbl->EnumCreatedEffectObjects(p,a,b,c)
|
---|
| 2059 | #define IDirectInputDevice8_Escape(p,a) (p)->lpVtbl->Escape(p,a)
|
---|
| 2060 | #define IDirectInputDevice8_Poll(p) (p)->lpVtbl->Poll(p)
|
---|
| 2061 | #define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->lpVtbl->SendDeviceData(p,a,b,c,d)
|
---|
| 2062 | /*** IDirectInputDevice7 methods ***/
|
---|
| 2063 | #define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->lpVtbl->EnumEffectsInFile(p,a,b,c,d)
|
---|
| 2064 | #define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->lpVtbl->WriteEffectToFile(p,a,b,c,d)
|
---|
| 2065 | /*** IDirectInputDevice8 methods ***/
|
---|
| 2066 | #define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->lpVtbl->BuildActionMap(p,a,b,c)
|
---|
| 2067 | #define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->lpVtbl->SetActionMap(p,a,b,c)
|
---|
| 2068 | #define IDirectInputDevice8_GetImageInfo(p,a) (p)->lpVtbl->GetImageInfo(p,a)
|
---|
| 2069 | #else
|
---|
| 2070 | /*** IUnknown methods ***/
|
---|
| 2071 | #define IDirectInputDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 2072 | #define IDirectInputDevice8_AddRef(p) (p)->AddRef()
|
---|
| 2073 | #define IDirectInputDevice8_Release(p) (p)->Release()
|
---|
| 2074 | /*** IDirectInputDevice methods ***/
|
---|
| 2075 | #define IDirectInputDevice8_GetCapabilities(p,a) (p)->GetCapabilities(a)
|
---|
| 2076 | #define IDirectInputDevice8_EnumObjects(p,a,b,c) (p)->EnumObjects(a,b,c)
|
---|
| 2077 | #define IDirectInputDevice8_GetProperty(p,a,b) (p)->GetProperty(a,b)
|
---|
| 2078 | #define IDirectInputDevice8_SetProperty(p,a,b) (p)->SetProperty(a,b)
|
---|
| 2079 | #define IDirectInputDevice8_Acquire(p) (p)->Acquire()
|
---|
| 2080 | #define IDirectInputDevice8_Unacquire(p) (p)->Unacquire()
|
---|
| 2081 | #define IDirectInputDevice8_GetDeviceState(p,a,b) (p)->GetDeviceState(a,b)
|
---|
| 2082 | #define IDirectInputDevice8_GetDeviceData(p,a,b,c,d) (p)->GetDeviceData(a,b,c,d)
|
---|
| 2083 | #define IDirectInputDevice8_SetDataFormat(p,a) (p)->SetDataFormat(a)
|
---|
| 2084 | #define IDirectInputDevice8_SetEventNotification(p,a) (p)->SetEventNotification(a)
|
---|
| 2085 | #define IDirectInputDevice8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
|
---|
| 2086 | #define IDirectInputDevice8_GetObjectInfo(p,a,b,c) (p)->GetObjectInfo(a,b,c)
|
---|
| 2087 | #define IDirectInputDevice8_GetDeviceInfo(p,a) (p)->GetDeviceInfo(a)
|
---|
| 2088 | #define IDirectInputDevice8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
| 2089 | #define IDirectInputDevice8_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
---|
| 2090 | /*** IDirectInputDevice2 methods ***/
|
---|
| 2091 | #define IDirectInputDevice8_CreateEffect(p,a,b,c,d) (p)->CreateEffect(a,b,c,d)
|
---|
| 2092 | #define IDirectInputDevice8_EnumEffects(p,a,b,c) (p)->EnumEffects(a,b,c)
|
---|
| 2093 | #define IDirectInputDevice8_GetEffectInfo(p,a,b) (p)->GetEffectInfo(a,b)
|
---|
| 2094 | #define IDirectInputDevice8_GetForceFeedbackState(p,a) (p)->GetForceFeedbackState(a)
|
---|
| 2095 | #define IDirectInputDevice8_SendForceFeedbackCommand(p,a) (p)->SendForceFeedbackCommand(a)
|
---|
| 2096 | #define IDirectInputDevice8_EnumCreatedEffectObjects(p,a,b,c) (p)->EnumCreatedEffectObjects(a,b,c)
|
---|
| 2097 | #define IDirectInputDevice8_Escape(p,a) (p)->Escape(a)
|
---|
| 2098 | #define IDirectInputDevice8_Poll(p) (p)->Poll()
|
---|
| 2099 | #define IDirectInputDevice8_SendDeviceData(p,a,b,c,d) (p)->SendDeviceData(a,b,c,d)
|
---|
| 2100 | /*** IDirectInputDevice7 methods ***/
|
---|
| 2101 | #define IDirectInputDevice8_EnumEffectsInFile(p,a,b,c,d) (p)->EnumEffectsInFile(a,b,c,d)
|
---|
| 2102 | #define IDirectInputDevice8_WriteEffectToFile(p,a,b,c,d) (p)->WriteEffectToFile(a,b,c,d)
|
---|
| 2103 | /*** IDirectInputDevice8 methods ***/
|
---|
| 2104 | #define IDirectInputDevice8_BuildActionMap(p,a,b,c) (p)->BuildActionMap(a,b,c)
|
---|
| 2105 | #define IDirectInputDevice8_SetActionMap(p,a,b,c) (p)->SetActionMap(a,b,c)
|
---|
| 2106 | #define IDirectInputDevice8_GetImageInfo(p,a) (p)->GetImageInfo(a)
|
---|
| 2107 | #endif
|
---|
| 2108 |
|
---|
| 2109 | #endif /* DI8 */
|
---|
| 2110 |
|
---|
| 2111 | /* "Standard" Mouse report... */
|
---|
| 2112 | typedef struct DIMOUSESTATE {
|
---|
| 2113 | LONG lX;
|
---|
| 2114 | LONG lY;
|
---|
| 2115 | LONG lZ;
|
---|
| 2116 | BYTE rgbButtons[4];
|
---|
| 2117 | } DIMOUSESTATE;
|
---|
| 2118 |
|
---|
| 2119 | #if DIRECTINPUT_VERSION >= 0x0700
|
---|
| 2120 | /* "Standard" Mouse report for DInput 7... */
|
---|
| 2121 | typedef struct DIMOUSESTATE2 {
|
---|
| 2122 | LONG lX;
|
---|
| 2123 | LONG lY;
|
---|
| 2124 | LONG lZ;
|
---|
| 2125 | BYTE rgbButtons[8];
|
---|
| 2126 | } DIMOUSESTATE2;
|
---|
| 2127 | #endif /* DI7 */
|
---|
| 2128 |
|
---|
| 2129 | #define DIMOFS_X FIELD_OFFSET(DIMOUSESTATE, lX)
|
---|
| 2130 | #define DIMOFS_Y FIELD_OFFSET(DIMOUSESTATE, lY)
|
---|
| 2131 | #define DIMOFS_Z FIELD_OFFSET(DIMOUSESTATE, lZ)
|
---|
| 2132 | #define DIMOFS_BUTTON0 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 0)
|
---|
| 2133 | #define DIMOFS_BUTTON1 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 1)
|
---|
| 2134 | #define DIMOFS_BUTTON2 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 2)
|
---|
| 2135 | #define DIMOFS_BUTTON3 (FIELD_OFFSET(DIMOUSESTATE, rgbButtons) + 3)
|
---|
| 2136 | #if DIRECTINPUT_VERSION >= 0x0700
|
---|
| 2137 | #define DIMOFS_BUTTON4 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 4)
|
---|
| 2138 | #define DIMOFS_BUTTON5 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 5)
|
---|
| 2139 | #define DIMOFS_BUTTON6 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 6)
|
---|
| 2140 | #define DIMOFS_BUTTON7 (FIELD_OFFSET(DIMOUSESTATE2, rgbButtons) + 7)
|
---|
| 2141 | #endif /* DI7 */
|
---|
| 2142 |
|
---|
| 2143 | #ifdef __cplusplus
|
---|
| 2144 | extern "C" {
|
---|
| 2145 | #endif
|
---|
| 2146 | extern const DIDATAFORMAT c_dfDIMouse;
|
---|
| 2147 | #if DIRECTINPUT_VERSION >= 0x0700
|
---|
| 2148 | extern const DIDATAFORMAT c_dfDIMouse2; /* DX 7 */
|
---|
| 2149 | #endif /* DI7 */
|
---|
| 2150 | extern const DIDATAFORMAT c_dfDIKeyboard;
|
---|
| 2151 | #if DIRECTINPUT_VERSION >= 0x0500
|
---|
| 2152 | extern const DIDATAFORMAT c_dfDIJoystick;
|
---|
| 2153 | extern const DIDATAFORMAT c_dfDIJoystick2;
|
---|
| 2154 | #endif /* DI5 */
|
---|
| 2155 | #ifdef __cplusplus
|
---|
| 2156 | };
|
---|
| 2157 | #endif
|
---|
| 2158 |
|
---|
| 2159 | /*****************************************************************************
|
---|
| 2160 | * IDirectInputA interface
|
---|
| 2161 | */
|
---|
| 2162 | #undef INTERFACE
|
---|
| 2163 | #define INTERFACE IDirectInputA
|
---|
| 2164 | DECLARE_INTERFACE_(IDirectInputA,IUnknown)
|
---|
| 2165 | {
|
---|
| 2166 | /*** IUnknown methods ***/
|
---|
| 2167 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 2168 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 2169 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 2170 | /*** IDirectInputA methods ***/
|
---|
| 2171 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
| 2172 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2173 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
| 2174 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2175 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
| 2176 | };
|
---|
| 2177 |
|
---|
| 2178 | /*****************************************************************************
|
---|
| 2179 | * IDirectInputW interface
|
---|
| 2180 | */
|
---|
| 2181 | #undef INTERFACE
|
---|
| 2182 | #define INTERFACE IDirectInputW
|
---|
| 2183 | DECLARE_INTERFACE_(IDirectInputW,IUnknown)
|
---|
| 2184 | {
|
---|
| 2185 | /*** IUnknown methods ***/
|
---|
| 2186 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 2187 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 2188 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 2189 | /*** IDirectInputW methods ***/
|
---|
| 2190 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
| 2191 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2192 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
| 2193 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2194 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
| 2195 | };
|
---|
| 2196 |
|
---|
| 2197 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 2198 | /*** IUnknown methods ***/
|
---|
| 2199 | #define IDirectInput_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 2200 | #define IDirectInput_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 2201 | #define IDirectInput_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 2202 | /*** IDirectInput methods ***/
|
---|
| 2203 | #define IDirectInput_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
|
---|
| 2204 | #define IDirectInput_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
---|
| 2205 | #define IDirectInput_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
|
---|
| 2206 | #define IDirectInput_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
| 2207 | #define IDirectInput_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
| 2208 | #else
|
---|
| 2209 | /*** IUnknown methods ***/
|
---|
| 2210 | #define IDirectInput_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 2211 | #define IDirectInput_AddRef(p) (p)->AddRef()
|
---|
| 2212 | #define IDirectInput_Release(p) (p)->Release()
|
---|
| 2213 | /*** IDirectInput methods ***/
|
---|
| 2214 | #define IDirectInput_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
|
---|
| 2215 | #define IDirectInput_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
---|
| 2216 | #define IDirectInput_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
|
---|
| 2217 | #define IDirectInput_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
| 2218 | #define IDirectInput_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
| 2219 | #endif
|
---|
| 2220 |
|
---|
| 2221 | /*****************************************************************************
|
---|
| 2222 | * IDirectInput2A interface
|
---|
| 2223 | */
|
---|
| 2224 | #undef INTERFACE
|
---|
| 2225 | #define INTERFACE IDirectInput2A
|
---|
| 2226 | DECLARE_INTERFACE_(IDirectInput2A,IDirectInputA)
|
---|
| 2227 | {
|
---|
| 2228 | /*** IUnknown methods ***/
|
---|
| 2229 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 2230 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 2231 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 2232 | /*** IDirectInputA methods ***/
|
---|
| 2233 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
| 2234 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2235 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
| 2236 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2237 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
| 2238 | /*** IDirectInput2A methods ***/
|
---|
| 2239 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE;
|
---|
| 2240 | };
|
---|
| 2241 |
|
---|
| 2242 | /*****************************************************************************
|
---|
| 2243 | * IDirectInput2W interface
|
---|
| 2244 | */
|
---|
| 2245 | #undef INTERFACE
|
---|
| 2246 | #define INTERFACE IDirectInput2W
|
---|
| 2247 | DECLARE_INTERFACE_(IDirectInput2W,IDirectInputW)
|
---|
| 2248 | {
|
---|
| 2249 | /*** IUnknown methods ***/
|
---|
| 2250 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 2251 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 2252 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 2253 | /*** IDirectInputW methods ***/
|
---|
| 2254 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
| 2255 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2256 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
| 2257 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2258 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
| 2259 | /*** IDirectInput2W methods ***/
|
---|
| 2260 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE;
|
---|
| 2261 | };
|
---|
| 2262 |
|
---|
| 2263 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 2264 | /*** IUnknown methods ***/
|
---|
| 2265 | #define IDirectInput2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 2266 | #define IDirectInput2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 2267 | #define IDirectInput2_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 2268 | /*** IDirectInput methods ***/
|
---|
| 2269 | #define IDirectInput2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
|
---|
| 2270 | #define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
---|
| 2271 | #define IDirectInput2_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
|
---|
| 2272 | #define IDirectInput2_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
| 2273 | #define IDirectInput2_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
| 2274 | /*** IDirectInput2 methods ***/
|
---|
| 2275 | #define IDirectInput2_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
|
---|
| 2276 | #else
|
---|
| 2277 | /*** IUnknown methods ***/
|
---|
| 2278 | #define IDirectInput2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 2279 | #define IDirectInput2_AddRef(p) (p)->AddRef()
|
---|
| 2280 | #define IDirectInput2_Release(p) (p)->Release()
|
---|
| 2281 | /*** IDirectInput methods ***/
|
---|
| 2282 | #define IDirectInput2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
|
---|
| 2283 | #define IDirectInput2_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
---|
| 2284 | #define IDirectInput2_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
|
---|
| 2285 | #define IDirectInput2_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
| 2286 | #define IDirectInput2_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
| 2287 | /*** IDirectInput2 methods ***/
|
---|
| 2288 | #define IDirectInput2_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
|
---|
| 2289 | #endif
|
---|
| 2290 |
|
---|
| 2291 | /*****************************************************************************
|
---|
| 2292 | * IDirectInput7A interface
|
---|
| 2293 | */
|
---|
| 2294 | #undef INTERFACE
|
---|
| 2295 | #define INTERFACE IDirectInput7A
|
---|
| 2296 | DECLARE_INTERFACE_(IDirectInput7A,IDirectInput2A)
|
---|
| 2297 | {
|
---|
| 2298 | /*** IUnknown methods ***/
|
---|
| 2299 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 2300 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 2301 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 2302 | /*** IDirectInputA methods ***/
|
---|
| 2303 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEA *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
| 2304 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2305 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
| 2306 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2307 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
| 2308 | /*** IDirectInput2A methods ***/
|
---|
| 2309 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE;
|
---|
| 2310 | /*** IDirectInput7A methods ***/
|
---|
| 2311 | STDMETHOD(CreateDeviceEx)(THIS_ REFGUID rguid, REFIID riid, LPVOID *pvOut, LPUNKNOWN lpUnknownOuter) PURE;
|
---|
| 2312 | };
|
---|
| 2313 |
|
---|
| 2314 | /*****************************************************************************
|
---|
| 2315 | * IDirectInput7W interface
|
---|
| 2316 | */
|
---|
| 2317 | #undef INTERFACE
|
---|
| 2318 | #define INTERFACE IDirectInput7W
|
---|
| 2319 | DECLARE_INTERFACE_(IDirectInput7W,IDirectInput2W)
|
---|
| 2320 | {
|
---|
| 2321 | /*** IUnknown methods ***/
|
---|
| 2322 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 2323 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 2324 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 2325 | /*** IDirectInputW methods ***/
|
---|
| 2326 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICEW *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
| 2327 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2328 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
| 2329 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2330 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
| 2331 | /*** IDirectInput2W methods ***/
|
---|
| 2332 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE;
|
---|
| 2333 | /*** IDirectInput7W methods ***/
|
---|
| 2334 | STDMETHOD(CreateDeviceEx)(THIS_ REFGUID rguid, REFIID riid, LPVOID *pvOut, LPUNKNOWN lpUnknownOuter) PURE;
|
---|
| 2335 | };
|
---|
| 2336 |
|
---|
| 2337 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 2338 | /*** IUnknown methods ***/
|
---|
| 2339 | #define IDirectInput7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 2340 | #define IDirectInput7_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 2341 | #define IDirectInput7_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 2342 | /*** IDirectInput methods ***/
|
---|
| 2343 | #define IDirectInput7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
|
---|
| 2344 | #define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
---|
| 2345 | #define IDirectInput7_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
|
---|
| 2346 | #define IDirectInput7_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
| 2347 | #define IDirectInput7_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
| 2348 | /*** IDirectInput2 methods ***/
|
---|
| 2349 | #define IDirectInput7_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
|
---|
| 2350 | /*** IDirectInput7 methods ***/
|
---|
| 2351 | #define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->lpVtbl->CreateDeviceEx(p,a,b,c,d)
|
---|
| 2352 | #else
|
---|
| 2353 | /*** IUnknown methods ***/
|
---|
| 2354 | #define IDirectInput7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 2355 | #define IDirectInput7_AddRef(p) (p)->AddRef()
|
---|
| 2356 | #define IDirectInput7_Release(p) (p)->Release()
|
---|
| 2357 | /*** IDirectInput methods ***/
|
---|
| 2358 | #define IDirectInput7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
|
---|
| 2359 | #define IDirectInput7_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
---|
| 2360 | #define IDirectInput7_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
|
---|
| 2361 | #define IDirectInput7_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
| 2362 | #define IDirectInput7_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
| 2363 | /*** IDirectInput2 methods ***/
|
---|
| 2364 | #define IDirectInput7_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
|
---|
| 2365 | /*** IDirectInput7 methods ***/
|
---|
| 2366 | #define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->CreateDeviceEx(a,b,c,d)
|
---|
| 2367 | #endif
|
---|
| 2368 |
|
---|
| 2369 |
|
---|
| 2370 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 2371 | /*****************************************************************************
|
---|
| 2372 | * IDirectInput8A interface
|
---|
| 2373 | */
|
---|
| 2374 | #undef INTERFACE
|
---|
| 2375 | #define INTERFACE IDirectInput8A
|
---|
| 2376 | DECLARE_INTERFACE_(IDirectInput8A,IUnknown)
|
---|
| 2377 | {
|
---|
| 2378 | /*** IUnknown methods ***/
|
---|
| 2379 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 2380 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 2381 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 2382 | /*** IDirectInput8A methods ***/
|
---|
| 2383 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICE8A *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
| 2384 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2385 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
| 2386 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2387 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
| 2388 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCSTR pszName, LPGUID pguidInstance) PURE;
|
---|
| 2389 | STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCSTR ptszUserName, LPDIACTIONFORMATA lpdiActionFormat, LPDIENUMDEVICESBYSEMANTICSCBA lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2390 | STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK lpdiCallback, LPDICONFIGUREDEVICESPARAMSA lpdiCDParams, DWORD dwFlags, LPVOID pvRefData) PURE;
|
---|
| 2391 | };
|
---|
| 2392 |
|
---|
| 2393 | /*****************************************************************************
|
---|
| 2394 | * IDirectInput8W interface
|
---|
| 2395 | */
|
---|
| 2396 | #undef INTERFACE
|
---|
| 2397 | #define INTERFACE IDirectInput8W
|
---|
| 2398 | DECLARE_INTERFACE_(IDirectInput8W,IUnknown)
|
---|
| 2399 | {
|
---|
| 2400 | /*** IUnknown methods ***/
|
---|
| 2401 | STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
---|
| 2402 | STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
---|
| 2403 | STDMETHOD_(ULONG,Release)(THIS) PURE;
|
---|
| 2404 | /*** IDirectInput8W methods ***/
|
---|
| 2405 | STDMETHOD(CreateDevice)(THIS_ REFGUID rguid, LPDIRECTINPUTDEVICE8W *lplpDirectInputDevice, LPUNKNOWN pUnkOuter) PURE;
|
---|
| 2406 | STDMETHOD(EnumDevices)(THIS_ DWORD dwDevType, LPDIENUMDEVICESCALLBACKW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2407 | STDMETHOD(GetDeviceStatus)(THIS_ REFGUID rguidInstance) PURE;
|
---|
| 2408 | STDMETHOD(RunControlPanel)(THIS_ HWND hwndOwner, DWORD dwFlags) PURE;
|
---|
| 2409 | STDMETHOD(Initialize)(THIS_ HINSTANCE hinst, DWORD dwVersion) PURE;
|
---|
| 2410 | STDMETHOD(FindDevice)(THIS_ REFGUID rguid, LPCWSTR pszName, LPGUID pguidInstance) PURE;
|
---|
| 2411 | STDMETHOD(EnumDevicesBySemantics)(THIS_ LPCWSTR ptszUserName, LPDIACTIONFORMATW lpdiActionFormat, LPDIENUMDEVICESBYSEMANTICSCBW lpCallback, LPVOID pvRef, DWORD dwFlags) PURE;
|
---|
| 2412 | STDMETHOD(ConfigureDevices)(THIS_ LPDICONFIGUREDEVICESCALLBACK lpdiCallback, LPDICONFIGUREDEVICESPARAMSW lpdiCDParams, DWORD dwFlags, LPVOID pvRefData) PURE;
|
---|
| 2413 | };
|
---|
| 2414 | #undef INTERFACE
|
---|
| 2415 |
|
---|
| 2416 | #if !defined(__cplusplus) || defined(CINTERFACE)
|
---|
| 2417 | /*** IUnknown methods ***/
|
---|
| 2418 | #define IDirectInput8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
---|
| 2419 | #define IDirectInput8_AddRef(p) (p)->lpVtbl->AddRef(p)
|
---|
| 2420 | #define IDirectInput8_Release(p) (p)->lpVtbl->Release(p)
|
---|
| 2421 | /*** IDirectInput8 methods ***/
|
---|
| 2422 | #define IDirectInput8_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
|
---|
| 2423 | #define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
---|
| 2424 | #define IDirectInput8_GetDeviceStatus(p,a) (p)->lpVtbl->GetDeviceStatus(p,a)
|
---|
| 2425 | #define IDirectInput8_RunControlPanel(p,a,b) (p)->lpVtbl->RunControlPanel(p,a,b)
|
---|
| 2426 | #define IDirectInput8_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
---|
| 2427 | #define IDirectInput8_FindDevice(p,a,b,c) (p)->lpVtbl->FindDevice(p,a,b,c)
|
---|
| 2428 | #define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->lpVtbl->EnumDevicesBySemantics(p,a,b,c,d,e)
|
---|
| 2429 | #define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->lpVtbl->ConfigureDevices(p,a,b,c,d)
|
---|
| 2430 | #else
|
---|
| 2431 | /*** IUnknown methods ***/
|
---|
| 2432 | #define IDirectInput8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
---|
| 2433 | #define IDirectInput8_AddRef(p) (p)->AddRef()
|
---|
| 2434 | #define IDirectInput8_Release(p) (p)->Release()
|
---|
| 2435 | /*** IDirectInput8 methods ***/
|
---|
| 2436 | #define IDirectInput8_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
|
---|
| 2437 | #define IDirectInput8_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
---|
| 2438 | #define IDirectInput8_GetDeviceStatus(p,a) (p)->GetDeviceStatus(a)
|
---|
| 2439 | #define IDirectInput8_RunControlPanel(p,a,b) (p)->RunControlPanel(a,b)
|
---|
| 2440 | #define IDirectInput8_Initialize(p,a,b) (p)->Initialize(a,b)
|
---|
| 2441 | #define IDirectInput8_FindDevice(p,a,b,c) (p)->FindDevice(a,b,c)
|
---|
| 2442 | #define IDirectInput8_EnumDevicesBySemantics(p,a,b,c,d,e) (p)->EnumDevicesBySemantics(a,b,c,d,e)
|
---|
| 2443 | #define IDirectInput8_ConfigureDevices(p,a,b,c,d) (p)->ConfigureDevices(a,b,c,d)
|
---|
| 2444 | #endif
|
---|
| 2445 |
|
---|
| 2446 | #endif /* DI8 */
|
---|
| 2447 |
|
---|
| 2448 | /* Export functions */
|
---|
| 2449 |
|
---|
| 2450 | #ifdef __cplusplus
|
---|
| 2451 | extern "C" {
|
---|
| 2452 | #endif
|
---|
| 2453 |
|
---|
| 2454 | #if DIRECTINPUT_VERSION >= 0x0800
|
---|
| 2455 | HRESULT WINAPI DirectInput8Create(HINSTANCE,DWORD,REFIID,LPVOID *,LPUNKNOWN);
|
---|
| 2456 | #else /* DI < 8 */
|
---|
| 2457 | HRESULT WINAPI DirectInputCreateA(HINSTANCE,DWORD,LPDIRECTINPUTA *,LPUNKNOWN);
|
---|
| 2458 | HRESULT WINAPI DirectInputCreateW(HINSTANCE,DWORD,LPDIRECTINPUTW *,LPUNKNOWN);
|
---|
| 2459 | #define DirectInputCreate WINELIB_NAME_AW(DirectInputCreate)
|
---|
| 2460 |
|
---|
| 2461 | HRESULT WINAPI DirectInputCreateEx(HINSTANCE,DWORD,REFIID,LPVOID *,LPUNKNOWN);
|
---|
| 2462 | #endif /* DI8 */
|
---|
| 2463 |
|
---|
| 2464 |
|
---|
| 2465 | /* New DirectInput8 style keyboard constants */
|
---|
| 2466 |
|
---|
| 2467 | #define DIKEYBOARD_ESCAPE (DIK_ESCAPE | 0x81000400)
|
---|
| 2468 | #define DIKEYBOARD_1 (DIK_1 | 0x81000400)
|
---|
| 2469 | #define DIKEYBOARD_2 (DIK_2 | 0x81000400)
|
---|
| 2470 | #define DIKEYBOARD_3 (DIK_3 | 0x81000400)
|
---|
| 2471 | #define DIKEYBOARD_4 (DIK_4 | 0x81000400)
|
---|
| 2472 | #define DIKEYBOARD_5 (DIK_5 | 0x81000400)
|
---|
| 2473 | #define DIKEYBOARD_6 (DIK_6 | 0x81000400)
|
---|
| 2474 | #define DIKEYBOARD_7 (DIK_7 | 0x81000400)
|
---|
| 2475 | #define DIKEYBOARD_8 (DIK_8 | 0x81000400)
|
---|
| 2476 | #define DIKEYBOARD_9 (DIK_9 | 0x81000400)
|
---|
| 2477 | #define DIKEYBOARD_0 (DIK_0 | 0x81000400)
|
---|
| 2478 | #define DIKEYBOARD_MINUS (DIK_MINUS | 0x81000400)
|
---|
| 2479 | #define DIKEYBOARD_EQUALS (DIK_EQUALS | 0x81000400)
|
---|
| 2480 | #define DIKEYBOARD_BACK (DIK_BACK | 0x81000400)
|
---|
| 2481 | #define DIKEYBOARD_TAB (DIK_TAB | 0x81000400)
|
---|
| 2482 | #define DIKEYBOARD_Q (DIK_Q | 0x81000400)
|
---|
| 2483 | #define DIKEYBOARD_W (DIK_W | 0x81000400)
|
---|
| 2484 | #define DIKEYBOARD_E (DIK_E | 0x81000400)
|
---|
| 2485 | #define DIKEYBOARD_R (DIK_R | 0x81000400)
|
---|
| 2486 | #define DIKEYBOARD_T (DIK_T | 0x81000400)
|
---|
| 2487 | #define DIKEYBOARD_Y (DIK_Y | 0x81000400)
|
---|
| 2488 | #define DIKEYBOARD_U (DIK_U | 0x81000400)
|
---|
| 2489 | #define DIKEYBOARD_I (DIK_I | 0x81000400)
|
---|
| 2490 | #define DIKEYBOARD_O (DIK_O | 0x81000400)
|
---|
| 2491 | #define DIKEYBOARD_P (DIK_P | 0x81000400)
|
---|
| 2492 | #define DIKEYBOARD_LBRACKET (DIK_LBRACKET | 0x81000400)
|
---|
| 2493 | #define DIKEYBOARD_RBRACKET (DIK_RBRACKET | 0x81000400)
|
---|
| 2494 | #define DIKEYBOARD_RETURN (DIK_RETURN | 0x81000400)
|
---|
| 2495 | #define DIKEYBOARD_LCONTROL (DIK_LCONTROL | 0x81000400)
|
---|
| 2496 | #define DIKEYBOARD_A (DIK_A | 0x81000400)
|
---|
| 2497 | #define DIKEYBOARD_S (DIK_S | 0x81000400)
|
---|
| 2498 | #define DIKEYBOARD_D (DIK_D | 0x81000400)
|
---|
| 2499 | #define DIKEYBOARD_F (DIK_F | 0x81000400)
|
---|
| 2500 | #define DIKEYBOARD_G (DIK_G | 0x81000400)
|
---|
| 2501 | #define DIKEYBOARD_H (DIK_H | 0x81000400)
|
---|
| 2502 | #define DIKEYBOARD_J (DIK_J | 0x81000400)
|
---|
| 2503 | #define DIKEYBOARD_K (DIK_K | 0x81000400)
|
---|
| 2504 | #define DIKEYBOARD_L (DIK_L | 0x81000400)
|
---|
| 2505 | #define DIKEYBOARD_SEMICOLON (DIK_SEMICOLON | 0x81000400)
|
---|
| 2506 | #define DIKEYBOARD_APOSTROPHE (DIK_APOSTROPHE | 0x81000400)
|
---|
| 2507 | #define DIKEYBOARD_GRAVE (DIK_GRAVE | 0x81000400)
|
---|
| 2508 | #define DIKEYBOARD_LSHIFT (DIK_LSHIFT | 0x81000400)
|
---|
| 2509 | #define DIKEYBOARD_BACKSLASH (DIK_BACKSLASH | 0x81000400)
|
---|
| 2510 | #define DIKEYBOARD_Z (DIK_Z | 0x81000400)
|
---|
| 2511 | #define DIKEYBOARD_X (DIK_X | 0x81000400)
|
---|
| 2512 | #define DIKEYBOARD_C (DIK_C | 0x81000400)
|
---|
| 2513 | #define DIKEYBOARD_V (DIK_V | 0x81000400)
|
---|
| 2514 | #define DIKEYBOARD_B (DIK_B | 0x81000400)
|
---|
| 2515 | #define DIKEYBOARD_N (DIK_N | 0x81000400)
|
---|
| 2516 | #define DIKEYBOARD_M (DIK_M | 0x81000400)
|
---|
| 2517 | #define DIKEYBOARD_COMMA (DIK_COMMA | 0x81000400)
|
---|
| 2518 | #define DIKEYBOARD_PERIOD (DIK_PERIOD | 0x81000400)
|
---|
| 2519 | #define DIKEYBOARD_SLASH (DIK_SLASH | 0x81000400)
|
---|
| 2520 | #define DIKEYBOARD_RSHIFT (DIK_RSHIFT | 0x81000400)
|
---|
| 2521 | #define DIKEYBOARD_MULTIPLY (DIK_MULTIPLY | 0x81000400)
|
---|
| 2522 | #define DIKEYBOARD_LMENU (DIK_LMENU | 0x81000400)
|
---|
| 2523 | #define DIKEYBOARD_SPACE (DIK_SPACE | 0x81000400)
|
---|
| 2524 | #define DIKEYBOARD_CAPITAL (DIK_CAPITAL | 0x81000400)
|
---|
| 2525 | #define DIKEYBOARD_F1 (DIK_F1 | 0x81000400)
|
---|
| 2526 | #define DIKEYBOARD_F2 (DIK_F2 | 0x81000400)
|
---|
| 2527 | #define DIKEYBOARD_F3 (DIK_F3 | 0x81000400)
|
---|
| 2528 | #define DIKEYBOARD_F4 (DIK_F4 | 0x81000400)
|
---|
| 2529 | #define DIKEYBOARD_F5 (DIK_F5 | 0x81000400)
|
---|
| 2530 | #define DIKEYBOARD_F6 (DIK_F6 | 0x81000400)
|
---|
| 2531 | #define DIKEYBOARD_F7 (DIK_F7 | 0x81000400)
|
---|
| 2532 | #define DIKEYBOARD_F8 (DIK_F8 | 0x81000400)
|
---|
| 2533 | #define DIKEYBOARD_F9 (DIK_F9 | 0x81000400)
|
---|
| 2534 | #define DIKEYBOARD_F10 (DIK_F10 | 0x81000400)
|
---|
| 2535 | #define DIKEYBOARD_NUMLOCK (DIK_NUMLOCK | 0x81000400)
|
---|
| 2536 | #define DIKEYBOARD_SCROLL (DIK_SCROLL | 0x81000400)
|
---|
| 2537 | #define DIKEYBOARD_NUMPAD7 (DIK_NUMPAD7 | 0x81000400)
|
---|
| 2538 | #define DIKEYBOARD_NUMPAD8 (DIK_NUMPAD8 | 0x81000400)
|
---|
| 2539 | #define DIKEYBOARD_NUMPAD9 (DIK_NUMPAD9 | 0x81000400)
|
---|
| 2540 | #define DIKEYBOARD_SUBTRACT (DIK_SUBTRACT | 0x81000400)
|
---|
| 2541 | #define DIKEYBOARD_NUMPAD4 (DIK_NUMPAD4 | 0x81000400)
|
---|
| 2542 | #define DIKEYBOARD_NUMPAD5 (DIK_NUMPAD5 | 0x81000400)
|
---|
| 2543 | #define DIKEYBOARD_NUMPAD6 (DIK_NUMPAD6 | 0x81000400)
|
---|
| 2544 | #define DIKEYBOARD_ADD (DIK_ADD | 0x81000400)
|
---|
| 2545 | #define DIKEYBOARD_NUMPAD1 (DIK_NUMPAD1 | 0x81000400)
|
---|
| 2546 | #define DIKEYBOARD_NUMPAD2 (DIK_NUMPAD2 | 0x81000400)
|
---|
| 2547 | #define DIKEYBOARD_NUMPAD3 (DIK_NUMPAD3 | 0x81000400)
|
---|
| 2548 | #define DIKEYBOARD_NUMPAD0 (DIK_NUMPAD0 | 0x81000400)
|
---|
| 2549 | #define DIKEYBOARD_DECIMAL (DIK_DECIMAL | 0x81000400)
|
---|
| 2550 | #define DIKEYBOARD_F11 (DIK_F11 | 0x81000400)
|
---|
| 2551 | #define DIKEYBOARD_F12 (DIK_F12 | 0x81000400)
|
---|
| 2552 | #define DIKEYBOARD_F13 (DIK_F13 | 0x81000400)
|
---|
| 2553 | #define DIKEYBOARD_F14 (DIK_F14 | 0x81000400)
|
---|
| 2554 | #define DIKEYBOARD_F15 (DIK_F15 | 0x81000400)
|
---|
| 2555 | #define DIKEYBOARD_KANA (DIK_KANA | 0x81000400)
|
---|
| 2556 | #define DIKEYBOARD_CONVERT (DIK_CONVERT | 0x81000400)
|
---|
| 2557 | #define DIKEYBOARD_NOCONVERT (DIK_NOCONVERT | 0x81000400)
|
---|
| 2558 | #define DIKEYBOARD_YEN (DIK_YEN | 0x81000400)
|
---|
| 2559 | #define DIKEYBOARD_NUMPADEQUALS (DIK_NUMPADEQUALS | 0x81000400)
|
---|
| 2560 | #define DIKEYBOARD_CIRCUMFLEX (DIK_CIRCUMFLEX | 0x81000400)
|
---|
| 2561 | #define DIKEYBOARD_AT (DIK_AT | 0x81000400)
|
---|
| 2562 | #define DIKEYBOARD_COLON (DIK_COLON | 0x81000400)
|
---|
| 2563 | #define DIKEYBOARD_UNDERLINE (DIK_UNDERLINE | 0x81000400)
|
---|
| 2564 | #define DIKEYBOARD_KANJI (DIK_KANJI | 0x81000400)
|
---|
| 2565 | #define DIKEYBOARD_STOP (DIK_STOP | 0x81000400)
|
---|
| 2566 | #define DIKEYBOARD_AX (DIK_AX | 0x81000400)
|
---|
| 2567 | #define DIKEYBOARD_UNLABELED (DIK_UNLABELED | 0x81000400)
|
---|
| 2568 | #define DIKEYBOARD_NUMPADENTER (DIK_NUMPADENTER | 0x81000400)
|
---|
| 2569 | #define DIKEYBOARD_RCONTROL (DIK_RCONTROL | 0x81000400)
|
---|
| 2570 | #define DIKEYBOARD_NUMPADCOMMA (DIK_NUMPADCOMMA | 0x81000400)
|
---|
| 2571 | #define DIKEYBOARD_DIVIDE (DIK_DIVIDE | 0x81000400)
|
---|
| 2572 | #define DIKEYBOARD_SYSRQ (DIK_SYSRQ | 0x81000400)
|
---|
| 2573 | #define DIKEYBOARD_RMENU (DIK_RMENU | 0x81000400)
|
---|
| 2574 | #define DIKEYBOARD_PAUSE (DIK_PAUSE | 0x81000400)
|
---|
| 2575 | #define DIKEYBOARD_HOME (DIK_HOME | 0x81000400)
|
---|
| 2576 | #define DIKEYBOARD_UP (DIK_UP | 0x81000400)
|
---|
| 2577 | #define DIKEYBOARD_PRIOR (DIK_PRIOR | 0x81000400)
|
---|
| 2578 | #define DIKEYBOARD_LEFT (DIK_LEFT | 0x81000400)
|
---|
| 2579 | #define DIKEYBOARD_RIGHT (DIK_RIGHT | 0x81000400)
|
---|
| 2580 | #define DIKEYBOARD_END (DIK_END | 0x81000400)
|
---|
| 2581 | #define DIKEYBOARD_DOWN (DIK_DOWN | 0x81000400)
|
---|
| 2582 | #define DIKEYBOARD_NEXT (DIK_NEXT | 0x81000400)
|
---|
| 2583 | #define DIKEYBOARD_INSERT (DIK_INSERT | 0x81000400)
|
---|
| 2584 | #define DIKEYBOARD_DELETE (DIK_DELETE | 0x81000400)
|
---|
| 2585 | #define DIKEYBOARD_LWIN (DIK_LWIN | 0x81000400)
|
---|
| 2586 | #define DIKEYBOARD_RWIN (DIK_RWIN | 0x81000400)
|
---|
| 2587 | #define DIKEYBOARD_APPS (DIK_APPS | 0x81000400)
|
---|
| 2588 | #define DIKEYBOARD_POWER (DIK_POWER | 0x81000400)
|
---|
| 2589 | #define DIKEYBOARD_SLEEP (DIK_SLEEP | 0x81000400)
|
---|
| 2590 | #define DIKEYBOARD_BACKSPACE (DIK_BACKSPACE | 0x81000400)
|
---|
| 2591 | #define DIKEYBOARD_NUMPADSTAR (DIK_NUMPADSTAR | 0x81000400)
|
---|
| 2592 | #define DIKEYBOARD_LALT (DIK_LALT | 0x81000400)
|
---|
| 2593 | #define DIKEYBOARD_CAPSLOCK (DIK_CAPSLOCK | 0x81000400)
|
---|
| 2594 | #define DIKEYBOARD_NUMPADMINUS (DIK_NUMPADMINUS | 0x81000400)
|
---|
| 2595 | #define DIKEYBOARD_NUMPADPLUS (DIK_NUMPADPLUS | 0x81000400)
|
---|
| 2596 | #define DIKEYBOARD_NUMPADPERIOD (DIK_NUMPADPERIOD | 0x81000400)
|
---|
| 2597 | #define DIKEYBOARD_NUMPADSLASH (DIK_NUMPADSLASH | 0x81000400)
|
---|
| 2598 | #define DIKEYBOARD_RALT (DIK_RALT | 0x81000400)
|
---|
| 2599 | #define DIKEYBOARD_UPARROW (DIK_UPARROW | 0x81000400)
|
---|
| 2600 | #define DIKEYBOARD_PGUP (DIK_PGUP | 0x81000400)
|
---|
| 2601 | #define DIKEYBOARD_LEFTARROW (DIK_LEFTARROW | 0x81000400)
|
---|
| 2602 | #define DIKEYBOARD_RIGHTARROW (DIK_RIGHTARROW | 0x81000400)
|
---|
| 2603 | #define DIKEYBOARD_DOWNARROW (DIK_DOWNARROW | 0x81000400)
|
---|
| 2604 | #define DIKEYBOARD_PGDN (DIK_PGDN | 0x81000400)
|
---|
| 2605 |
|
---|
| 2606 | /* New DirectInput8 mouse definitions */
|
---|
| 2607 |
|
---|
| 2608 | #define DIMOUSE_XAXISAB (0x82000200 | DIMOFS_X)
|
---|
| 2609 | #define DIMOUSE_YAXISAB (0x82000200 | DIMOFS_Y)
|
---|
| 2610 | #define DIMOUSE_XAXIS (0x82000300 | DIMOFS_X)
|
---|
| 2611 | #define DIMOUSE_YAXIS (0x82000300 | DIMOFS_Y)
|
---|
| 2612 | #define DIMOUSE_WHEEL (0x82000300 | DIMOFS_Z)
|
---|
| 2613 | #define DIMOUSE_BUTTON0 (0x82000400 | DIMOFS_BUTTON0)
|
---|
| 2614 | #define DIMOUSE_BUTTON1 (0x82000400 | DIMOFS_BUTTON1)
|
---|
| 2615 | #define DIMOUSE_BUTTON2 (0x82000400 | DIMOFS_BUTTON2)
|
---|
| 2616 | #define DIMOUSE_BUTTON3 (0x82000400 | DIMOFS_BUTTON3)
|
---|
| 2617 | #define DIMOUSE_BUTTON4 (0x82000400 | DIMOFS_BUTTON4)
|
---|
| 2618 | #define DIMOUSE_BUTTON5 (0x82000400 | DIMOFS_BUTTON5)
|
---|
| 2619 | #define DIMOUSE_BUTTON6 (0x82000400 | DIMOFS_BUTTON6)
|
---|
| 2620 | #define DIMOUSE_BUTTON7 (0x82000400 | DIMOFS_BUTTON7)
|
---|
| 2621 |
|
---|
| 2622 |
|
---|
| 2623 | #define DIAXIS_ANY_X_1 0xFF00C201
|
---|
| 2624 | #define DIAXIS_ANY_X_2 0xFF00C202
|
---|
| 2625 | #define DIAXIS_ANY_Y_1 0xFF014201
|
---|
| 2626 | #define DIAXIS_ANY_Y_2 0xFF014202
|
---|
| 2627 | #define DIAXIS_ANY_Z_1 0xFF01C201
|
---|
| 2628 | #define DIAXIS_ANY_Z_2 0xFF01C202
|
---|
| 2629 | #define DIAXIS_ANY_R_1 0xFF024201
|
---|
| 2630 | #define DIAXIS_ANY_R_2 0xFF024202
|
---|
| 2631 | #define DIAXIS_ANY_U_1 0xFF02C201
|
---|
| 2632 | #define DIAXIS_ANY_U_2 0xFF02C202
|
---|
| 2633 | #define DIAXIS_ANY_V_1 0xFF034201
|
---|
| 2634 | #define DIAXIS_ANY_V_2 0xFF034202
|
---|
| 2635 | #define DIAXIS_ANY_A_1 0xFF03C201
|
---|
| 2636 | #define DIAXIS_ANY_A_2 0xFF03C202
|
---|
| 2637 | #define DIAXIS_ANY_B_1 0xFF044201
|
---|
| 2638 | #define DIAXIS_ANY_B_2 0xFF044202
|
---|
| 2639 | #define DIAXIS_ANY_C_1 0xFF04C201
|
---|
| 2640 | #define DIAXIS_ANY_C_2 0xFF04C202
|
---|
| 2641 | #define DIAXIS_ANY_S_1 0xFF054201
|
---|
| 2642 | #define DIAXIS_ANY_S_2 0xFF054202
|
---|
| 2643 | #define DIAXIS_ANY_1 0xFF004201
|
---|
| 2644 | #define DIAXIS_ANY_2 0xFF004202
|
---|
| 2645 | #define DIAXIS_ANY_3 0xFF004203
|
---|
| 2646 | #define DIAXIS_ANY_4 0xFF004204
|
---|
| 2647 | #define DIPOV_ANY_1 0xFF004601
|
---|
| 2648 | #define DIPOV_ANY_2 0xFF004602
|
---|
| 2649 | #define DIPOV_ANY_3 0xFF004603
|
---|
| 2650 | #define DIPOV_ANY_4 0xFF004604
|
---|
| 2651 | #define DIBUTTON_ANY(instance) (0xFF004400 | (instance))
|
---|
| 2652 |
|
---|
| 2653 |
|
---|
| 2654 | #define DIVIRTUAL_FLYING_HELICOPTER 0x06000000
|
---|
| 2655 | #define DIBUTTON_FLYINGH_MENU 0x060004fd
|
---|
| 2656 | #define DIBUTTON_FLYINGH_FIRE 0x06001401
|
---|
| 2657 | #define DIBUTTON_FLYINGH_WEAPONS 0x06001402
|
---|
| 2658 | #define DIBUTTON_FLYINGH_TARGET 0x06001403
|
---|
| 2659 | #define DIBUTTON_FLYINGH_DEVICE 0x060044fe
|
---|
| 2660 | #define DIBUTTON_FLYINGH_PAUSE 0x060044fc
|
---|
| 2661 | #define DIHATSWITCH_FLYINGH_GLANCE 0x06004601
|
---|
| 2662 | #define DIBUTTON_FLYINGH_FIRESECONDARY 0x06004c07
|
---|
| 2663 | #define DIBUTTON_FLYINGH_COUNTER 0x06005404
|
---|
| 2664 | #define DIBUTTON_FLYINGH_VIEW 0x06006405
|
---|
| 2665 | #define DIBUTTON_FLYINGH_GEAR 0x06006406
|
---|
| 2666 | #define DIAXIS_FLYINGH_BANK 0x06008a01
|
---|
| 2667 | #define DIAXIS_FLYINGH_PITCH 0x06010a02
|
---|
| 2668 | #define DIAXIS_FLYINGH_COLLECTIVE 0x06018a03
|
---|
| 2669 | #define DIAXIS_FLYINGH_TORQUE 0x06025a04
|
---|
| 2670 | #define DIAXIS_FLYINGH_THROTTLE 0x0603da05
|
---|
| 2671 | #define DIBUTTON_FLYINGH_FASTER_LINK 0x0603dce0
|
---|
| 2672 | #define DIBUTTON_FLYINGH_SLOWER_LINK 0x0603dce8
|
---|
| 2673 | #define DIBUTTON_FLYINGH_GLANCE_LEFT_LINK 0x0607c4e4
|
---|
| 2674 | #define DIBUTTON_FLYINGH_GLANCE_RIGHT_LINK 0x0607c4ec
|
---|
| 2675 | #define DIBUTTON_FLYINGH_GLANCE_UP_LINK 0x0607c4e0
|
---|
| 2676 | #define DIBUTTON_FLYINGH_GLANCE_DOWN_LINK 0x0607c4e8
|
---|
| 2677 |
|
---|
| 2678 | #define DIVIRTUAL_SPACESIM 0x07000000
|
---|
| 2679 | #define DIBUTTON_SPACESIM_FIRE 0x07000401
|
---|
| 2680 | #define DIBUTTON_SPACESIM_WEAPONS 0x07000402
|
---|
| 2681 | #define DIBUTTON_SPACESIM_TARGET 0x07000403
|
---|
| 2682 | #define DIBUTTON_SPACESIM_MENU 0x070004fd
|
---|
| 2683 | #define DIBUTTON_SPACESIM_VIEW 0x07004404
|
---|
| 2684 | #define DIBUTTON_SPACESIM_DISPLAY 0x07004405
|
---|
| 2685 | #define DIBUTTON_SPACESIM_RAISE 0x07004406
|
---|
| 2686 | #define DIBUTTON_SPACESIM_LOWER 0x07004407
|
---|
| 2687 | #define DIBUTTON_SPACESIM_GEAR 0x07004408
|
---|
| 2688 | #define DIBUTTON_SPACESIM_FIRESECONDARY 0x07004409
|
---|
| 2689 | #define DIBUTTON_SPACESIM_PAUSE 0x070044fc
|
---|
| 2690 | #define DIBUTTON_SPACESIM_DEVICE 0x070044fe
|
---|
| 2691 | #define DIHATSWITCH_SPACESIM_GLANCE 0x07004601
|
---|
| 2692 | #define DIBUTTON_SPACESIM_LEFT_LINK 0x0700c4e4
|
---|
| 2693 | #define DIBUTTON_SPACESIM_RIGHT_LINK 0x0700c4ec
|
---|
| 2694 | #define DIAXIS_SPACESIM_LATERAL 0x07008201
|
---|
| 2695 | #define DIAXIS_SPACESIM_MOVE 0x07010202
|
---|
| 2696 | #define DIBUTTON_SPACESIM_FORWARD_LINK 0x070144e0
|
---|
| 2697 | #define DIBUTTON_SPACESIM_BACKWARD_LINK 0x070144e8
|
---|
| 2698 | #define DIAXIS_SPACESIM_CLIMB 0x0701c204
|
---|
| 2699 | #define DIAXIS_SPACESIM_ROTATE 0x07024205
|
---|
| 2700 | #define DIBUTTON_SPACESIM_TURN_LEFT_LINK 0x070244e4
|
---|
| 2701 | #define DIBUTTON_SPACESIM_TURN_RIGHT_LINK 0x070244ec
|
---|
| 2702 | #define DIAXIS_SPACESIM_THROTTLE 0x07038203
|
---|
| 2703 | #define DIBUTTON_SPACESIM_FASTER_LINK 0x0703c4e0
|
---|
| 2704 | #define DIBUTTON_SPACESIM_SLOWER_LINK 0x0703c4e8
|
---|
| 2705 | #define DIBUTTON_SPACESIM_GLANCE_UP_LINK 0x0707c4e0
|
---|
| 2706 | #define DIBUTTON_SPACESIM_GLANCE_LEFT_LINK 0x0707c4e4
|
---|
| 2707 | #define DIBUTTON_SPACESIM_GLANCE_DOWN_LINK 0x0707c4e8
|
---|
| 2708 | #define DIBUTTON_SPACESIM_GLANCE_RIGHT_LINK 0x0707c4ec
|
---|
| 2709 |
|
---|
| 2710 | #ifdef __cplusplus
|
---|
| 2711 | };
|
---|
| 2712 | #endif
|
---|
| 2713 |
|
---|
| 2714 | #endif /* __DINPUT_INCLUDED__ */
|
---|