Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
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
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? not sure why
19
20
// ------------------------------------------
21
// nothing past this point is saved or loaded
22
LPDIRECTINPUTDEVICE8
g_pJoystick
=
nullptr
;
// The joystick device
23
bool
IsFreeTrack
()
const
{
return
guid
==
MYGUID_FREETRACK
; }
24
bool
UsesMouse
()
const
{
return
!
g_pJoystick
&& !
IsFreeTrack
(); }
25
bool
hasMoved
=
false
;
26
std::string
friendlyName
;
27
long
oldValue
= 0;
28
DIJOYSTATE
oldJs
= {};
29
};
Guids.h
MYGUID_DEFAULT
const GUID MYGUID_DEFAULT
Definition
Guids.h:5
MYGUID_FREETRACK
const GUID MYGUID_FREETRACK
Definition
Guids.h:8
InputConfig
Definition
InputConfig.h:12
InputConfig::oldValue
long oldValue
Definition
InputConfig.h:27
InputConfig::IsFreeTrack
bool IsFreeTrack() const
Definition
InputConfig.h:23
InputConfig::split
bool split
Definition
InputConfig.h:17
InputConfig::forceFeedback
bool forceFeedback
Definition
InputConfig.h:16
InputConfig::g_pJoystick
LPDIRECTINPUTDEVICE8 g_pJoystick
Definition
InputConfig.h:22
InputConfig::oldJs
DIJOYSTATE oldJs
Definition
InputConfig.h:28
InputConfig::guid
GUID guid
Definition
InputConfig.h:13
InputConfig::friendlyName
std::string friendlyName
Definition
InputConfig.h:26
InputConfig::hasMoved
bool hasMoved
Definition
InputConfig.h:25
InputConfig::axis
unsigned char axis
Definition
InputConfig.h:14
InputConfig::padding
char padding[11]
Definition
InputConfig.h:18
InputConfig::invert
bool invert
Definition
InputConfig.h:15
InputConfig::UsesMouse
bool UsesMouse() const
Definition
InputConfig.h:24
Config
InputConfig.h
Generated on
for Rise by
1.18.0