-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
61 lines (46 loc) · 1.23 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
- Reads config in ../murka.config
- Default settings if config not found
*/
#pragma once
#include <windows.h>
// TODO: Add other keys like ; , . / " ' [ ]
#define KEYSTRING_TAB "Tab"
#define KEYSTRING_CAPSLOCK "Caps_Lock"
#define KEYSTRING_LSHIFT "Left_Shift"
#define KEYSTRING_RSHIFT "Right_Shift"
#define KEYSTRING_LCTRL "Left_Ctrl"
#define KEYSTRING_RCTRL "Right_Ctrl"
#define KEYSTRING_LALT "Left_Alt"
#define KEYSTRING_RALT "Right_Alt"
extern struct CONFIG_DATA
{
byte mouseDeltaNormal;
byte mouseDeltaFast;
byte mouseDeltaSlow;
byte keyMouseFast;
byte keyMouseSlow;
byte keyMouseNormal;
byte keyMouseMoveRight;
byte keyMouseMoveLeft;
byte keyMouseMoveUp;
byte keyMouseMoveDown;
byte keyMouseClickLeft;
byte keyMouseClickRight;
byte* toggleKeys;
byte numberOfToggleKeys;
};
namespace Config
{
/**
* @fn void Config::Load(CONFIG_DATA& _ConfigData, const char* configPath)
*
* @brief Loads keybinds and stuff from a file to memory
*
* @date 8/23/2019
*
* @param [in,out] _ConfigData global struct containing configuration data.
* @param [in] configPath Full pathname of the configuration file.
*/
void Load(CONFIG_DATA &_ConfigData);
}