resonance 1.0.1
Loading...
Searching...
No Matches
inputcheatdetector.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
6#include "os/hxstr.h"
7
26public:
41 std::vector<int> mButtons;
42 };
43
57 explicit InputCheatDetector(std::vector<CheatSequence> *pCheats);
58
74 virtual void OnControllerReading(int nType, int nSlot, int nButton, float flValue);
75
83 virtual void UnusedHook() = 0;
84
85private:
93 void RegisterCheats();
94
104 void AddGameCheat(const CheatSequence &cheat);
105
112 void AddMetCheat(const CheatSequence &cheat);
113
114 // The table the constructor stores. +0x04
115 std::vector<CheatSequence> *mCheats;
116};
117
127extern std::vector<InputCheatDetector::CheatSequence> g_metCheatSequences;
128
138extern std::vector<InputCheatDetector::CheatSequence> g_gameCheatSequences;
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
virtual void UnusedHook()=0
A hook that does nothing.
InputCheatDetector(std::vector< CheatSequence > *pCheats)
Attach the detector to a table of cheats.
virtual void OnControllerReading(int nType, int nSlot, int nButton, float flValue)
Match one controller reading against the table.
Base of every object that reads a controller directly.
Definition rawcontroller.h:19
std::vector< InputCheatDetector::CheatSequence > g_gameCheatSequences
Cheats a game session detects.
std::vector< InputCheatDetector::CheatSequence > g_metCheatSequences
Cheats the front end detects.
One cheat, as InputCheatDetector::RegisterCheats() at 0x001dabc8 builds it.
Definition inputcheatdetector.h:39
std::vector< int > mButtons
Definition inputcheatdetector.h:41
HxStr mName
Definition inputcheatdetector.h:40