Rise
The Vieneo Province
Loading...
Searching...
No Matches
FreeTrack.h
Go to the documentation of this file.
1#pragma once
2
3/********************************************************************
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 3 of the License, or
7(at your option) any later version.
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12You should have received a copy of the GNU General Public License
13along 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
23class Viewscreen;
24
26{
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
45
46 std::string dllVersion;
47
48public:
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};
SCRIPT_CONTROL SCRIPT_STATE const void SCRIPT_CONTROL SCRIPT_STATE const int SCRIPT_TABDEF const BYTE SCRIPT_STRING_ANALYSIS BOOL
void Poll()
Definition FreeTrack.cpp:35
HINSTANCE hinstLib
Definition FreeTrack.h:30
importReportID reportID
Definition FreeTrack.h:43
std::string dllVersion
Definition FreeTrack.h:46
const char *(WINAPI *) importProvider()
Definition FreeTrack.h:38
importProvider provider
Definition FreeTrack.h:44
FreeTrackInput input
Definition FreeTrack.h:49
FreeTrack(Viewscreen *prmViewscreen)
Definition FreeTrack.cpp:5
importGetDllVersion getDllVersion
Definition FreeTrack.h:42
BOOL(WINAPI *) importGetData(FreeTrackData *data)
Definition FreeTrack.h:35
const char *(WINAPI *) importGetDllVersion()
Definition FreeTrack.h:36
Logger * logger
Definition FreeTrack.h:28
Viewscreen * viewscreen
Definition FreeTrack.h:27
void(WINAPI *) importReportID(int name)
Definition FreeTrack.h:37
bool Available() const
Definition FreeTrack.h:50
void Reset()
Definition FreeTrack.cpp:29
const std::string & Version() const
Definition FreeTrack.h:51
importGetData getData
Definition FreeTrack.h:41
typedef void(S_CALLTYPE *SteamAPIWarningMessageHook_t)(int