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
11
struct
InputConfig
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
InputConfig::forceFeedback
bool forceFeedback
Definition:
InputConfig.h:16
InputConfig::invert
bool invert
Definition:
InputConfig.h:15
InputConfig::friendlyName
std::string friendlyName
Definition:
InputConfig.h:24
InputConfig::axis
unsigned char axis
Definition:
InputConfig.h:14
InputConfig::guid
GUID guid
Definition:
InputConfig.h:13
InputConfig::padding
char padding[11]
Definition:
InputConfig.h:18
InputConfig::g_pJoystick
LPDIRECTINPUTDEVICE8 g_pJoystick
Definition:
InputConfig.h:22
InputConfig
Definition:
InputConfig.h:11
MYGUID_DEFAULT
const GUID MYGUID_DEFAULT
Definition:
Guids.h:5
InputConfig::hasMoved
bool hasMoved
Definition:
InputConfig.h:23
Guids.h
InputConfig::split
bool split
Definition:
InputConfig.h:17
InputConfig::oldValue
long oldValue
Definition:
InputConfig.h:25
Config
InputConfig.h
Generated on Tue May 4 2021 15:18:09 for Rise by
1.8.14