Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
FreeTrack.h
Go to the documentation of this file.
1
#pragma once
2
3
/********************************************************************
4
This program is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program. If not, see <http://www.gnu.org/licenses/>.
14
********************************************************************/
15
16
#include <WinSock2.h>
17
#include <WS2tcpip.h>
18
#include <Windows.h>
19
20
#include "
../Logger.h
"
21
#include "
FreeTrackInput.h
"
22
23
class
Viewscreen
;
24
25
class
FreeTrack
26
{
27
Viewscreen
*
viewscreen
;
28
Logger
*
logger
;
29
30
HINSTANCE
hinstLib
;
31
32
// DLL function signatures
33
// These match those given in FTTypes.pas
34
// WINAPI is macro for __stdcall defined somewhere in the depths of windows.h
35
typedef
BOOL
(WINAPI *
importGetData
)(
FreeTrackData
* data);
36
typedef
const
char
*(WINAPI *
importGetDllVersion
)();
37
typedef
void
(WINAPI *
importReportID
)(
int
name);
38
typedef
const
char
*(WINAPI *
importProvider
)();
39
40
// declare imported function pointers
41
importGetData
getData
;
42
importGetDllVersion
getDllVersion
;
43
importReportID
reportID
;
44
importProvider
provider
;
45
46
std::string
dllVersion
;
47
48
public
:
49
FreeTrackInput
input
;
50
bool
Available
()
const
{
return
getData
!=
nullptr
; }
51
const
std::string&
Version
()
const
{
return
dllVersion
; }
52
void
Reset
();
53
FreeTrack
(
Viewscreen
* prmViewscreen);
54
void
Poll
();
55
~FreeTrack
();
56
};
BOOL
SCRIPT_CONTROL SCRIPT_STATE const void SCRIPT_CONTROL SCRIPT_STATE const int SCRIPT_TABDEF const BYTE SCRIPT_STRING_ANALYSIS BOOL
Definition
Controls.cpp:5035
FreeTrackInput.h
Logger.h
FreeTrack
Definition
FreeTrack.h:26
FreeTrack::Poll
void Poll()
Definition
FreeTrack.cpp:35
FreeTrack::hinstLib
HINSTANCE hinstLib
Definition
FreeTrack.h:30
FreeTrack::reportID
importReportID reportID
Definition
FreeTrack.h:43
FreeTrack::dllVersion
std::string dllVersion
Definition
FreeTrack.h:46
FreeTrack::importProvider
const char *(WINAPI *) importProvider()
Definition
FreeTrack.h:38
FreeTrack::provider
importProvider provider
Definition
FreeTrack.h:44
FreeTrack::input
FreeTrackInput input
Definition
FreeTrack.h:49
FreeTrack::FreeTrack
FreeTrack(Viewscreen *prmViewscreen)
Definition
FreeTrack.cpp:5
FreeTrack::getDllVersion
importGetDllVersion getDllVersion
Definition
FreeTrack.h:42
FreeTrack::importGetData
BOOL(WINAPI *) importGetData(FreeTrackData *data)
Definition
FreeTrack.h:35
FreeTrack::importGetDllVersion
const char *(WINAPI *) importGetDllVersion()
Definition
FreeTrack.h:36
FreeTrack::logger
Logger * logger
Definition
FreeTrack.h:28
FreeTrack::viewscreen
Viewscreen * viewscreen
Definition
FreeTrack.h:27
FreeTrack::importReportID
void(WINAPI *) importReportID(int name)
Definition
FreeTrack.h:37
FreeTrack::Available
bool Available() const
Definition
FreeTrack.h:50
FreeTrack::Reset
void Reset()
Definition
FreeTrack.cpp:29
FreeTrack::Version
const std::string & Version() const
Definition
FreeTrack.h:51
FreeTrack::getData
importGetData getData
Definition
FreeTrack.h:41
FreeTrackInput
Definition
FreeTrackInput.h:19
Logger
Definition
Logger.h:11
Viewscreen
Definition
Viewscreen.h:48
void
typedef void(S_CALLTYPE *SteamAPIWarningMessageHook_t)(int
FreeTrackData
Definition
FreeTrackInput.h:8
Viewscreen
FreeTrack.h
Generated on
for Rise by
1.18.0