Rise
The Vieneo Province
InputConfig.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <WinSock2.h>
4 #include <WS2tcpip.h>
5 #include <Windows.h>
6 #include <dinput.h> // LPDIRECTINPUTDEVICE8
7 
8 #include <string> // std::string
9 #include "Guids.h" // GUID_DEFAULT
10 
12 {
13  GUID guid = MYGUID_DEFAULT; // 16 // this is a flag that it is not zeroed out
14  unsigned char axis = 0; // 1 but I think it is 2 for byte-alignment
15  bool invert = false; // 1
16  bool forceFeedback = false; // 1
17  bool split = false; // 1
18  char padding[11]; // 11 to make it an even 32
19 
20  // ------------------------------------------
21  // nothing past this point is saved or loaded
22  LPDIRECTINPUTDEVICE8 g_pJoystick = nullptr; // The joystick device
23  bool hasMoved = false;
24  std::string friendlyName;
25  long oldValue = 0;
26 };
27 
28 // downshift gear Cool Steering Wheel Button 0
29 // upshift gear Cool Steering Wheel Button 1
30 // pitch trim up Saitek X-55 Flight Button 4
31 // pitch trim dn Saitek X-55 Flight Button 5
32 // honk horn Cool Steering Wheel Button 2
33 // Fire weapon 1 Saitek X-55 Flight Button 0
34 // Fire weapon 2 Saitek X-55 Flight Button 1
bool forceFeedback
Definition: InputConfig.h:16
std::string friendlyName
Definition: InputConfig.h:24
unsigned char axis
Definition: InputConfig.h:14
char padding[11]
Definition: InputConfig.h:18
LPDIRECTINPUTDEVICE8 g_pJoystick
Definition: InputConfig.h:22
const GUID MYGUID_DEFAULT
Definition: Guids.h:5
bool hasMoved
Definition: InputConfig.h:23
long oldValue
Definition: InputConfig.h:25