PagesControl, refactor
This commit is contained in:
+1
-20
@@ -2,6 +2,7 @@
|
||||
#define WINDOW_EVENTS_H_
|
||||
|
||||
#include "Window.h"
|
||||
#include "input.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -9,26 +10,6 @@
|
||||
|
||||
typedef unsigned int uint;
|
||||
|
||||
enum class inputtype {
|
||||
keyboard,
|
||||
button,
|
||||
};
|
||||
|
||||
struct Binding {
|
||||
inputtype type;
|
||||
int code;
|
||||
bool state = false;
|
||||
bool justChange = false;
|
||||
|
||||
bool active() const {
|
||||
return state;
|
||||
}
|
||||
|
||||
bool jactive() const {
|
||||
return state && justChange;
|
||||
}
|
||||
};
|
||||
|
||||
class Events {
|
||||
public:
|
||||
static bool* _keys;
|
||||
|
||||
Reference in New Issue
Block a user