6#define DIRECTINPUT_VERSION 0x0800
25#define IDD_JOYST_IMM 103
26#define IDR_ACCELERATOR1 103
28#define IDC_X_AXIS 1010
29#define IDC_Y_AXIS 1011
30#define IDC_Z_AXIS 1012
31#define IDC_X_AXIS_TEXT 1013
32#define IDC_Y_AXIS_TEXT 1014
33#define IDC_Z_AXIS_TEXT 1015
34#define IDC_X_ROT_TEXT 1016
35#define IDC_Y_ROT_TEXT 1017
36#define IDC_Z_ROT_TEXT 1018
37#define IDC_SLIDER0_TEXT 1019
41#define IDC_SLIDER1_TEXT 1023
42#define IDC_POV0_TEXT 1024
43#define IDC_POV1_TEXT 1025
44#define IDC_POV2_TEXT 1026
45#define IDC_POV3_TEXT 1027
46#define IDC_SLIDER0 1030
47#define IDC_SLIDER1 1031
50#define IDC_BUTTONS 1041
57#define SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } }
58#define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } }
61#pragma warning( disable : 4996 )
63#pragma warning( default : 4996 )
68INT_PTR CALLBACK MainDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam );
69BOOL CALLBACK EnumObjectsCallback(
const DIDEVICEOBJECTINSTANCE* pdidoi, VOID* pContext );
70BOOL CALLBACK EnumJoysticksCallback(
const DIDEVICEINSTANCE* pdidInstance, VOID* pContext );
71HRESULT InitDirectInput( HWND hDlg );
72VOID FreeDirectInput();
73HRESULT UpdateInputState( HWND hDlg );
74HRESULT SetupForIsXInputDevice();
75bool IsXInputDevice(
const GUID* pGuidProductFromDirectInput );
76void CleanupForIsXInputDevice();
79 LPDIRECTINPUTDEVICE8 dev;
84extern std::map<long long,joyData_t> Joysticks;
Definition: Joystick.h:78