init
This commit is contained in:
24
TempleWare-CS2/source/templeware/keybinds/keybinds.h
Normal file
24
TempleWare-CS2/source/templeware/keybinds/keybinds.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include <vector>
|
||||
|
||||
struct Keybind {
|
||||
bool& var;
|
||||
int key;
|
||||
bool isListening;
|
||||
bool skipFrame;
|
||||
|
||||
Keybind(bool& v, int k = 0);
|
||||
};
|
||||
|
||||
|
||||
class Keybinds {
|
||||
public:
|
||||
Keybinds();
|
||||
void pollInputs();
|
||||
|
||||
void menuButton(bool& var);
|
||||
private:
|
||||
std::vector<Keybind> keybinds;
|
||||
};
|
||||
|
||||
extern Keybinds keybind;
|
||||
Reference in New Issue
Block a user