Major refactoring, transferring from masterd

This commit is contained in:
PixlOne
2019-07-17 01:53:51 -04:00
parent 2190b527a7
commit 9c092edcf3
17 changed files with 1653 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#ifndef MASTEROPTIONS_LOGGER_H
#define MASTEROPTIONS_LOGGER_H
#include "Actions.h"
enum LogLevel
{
DEBUG,
INFO,
WARN,
ERROR
};
extern LogLevel global_verbosity;
void log_printf(LogLevel level, const char* format, ...);
const char* level_prefix(LogLevel level);
Direction get_direction(int x, int y);
Direction string_to_direction(std::string s);
GestureMode string_to_gesturemode(std::string s);
Action string_to_action(std::string s);
#endif //MASTEROPTIONS_LOGGER_H