mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
PagesControl, refactor
This commit is contained in:
parent
41f9c51a27
commit
4ea7bda249
15 changed files with 339 additions and 117 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue