mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
refactor Events
This commit is contained in:
parent
ba83b27179
commit
911e828602
5 changed files with 120 additions and 109 deletions
|
|
@ -10,6 +10,9 @@
|
|||
|
||||
typedef unsigned int uint;
|
||||
|
||||
extern const short KEYS_BUFFER_SIZE;
|
||||
extern const short _MOUSE_KEYS_OFFSET;
|
||||
|
||||
class Events {
|
||||
public:
|
||||
static bool* _keys;
|
||||
|
|
@ -28,7 +31,7 @@ public:
|
|||
|
||||
static int initialize();
|
||||
static void finalize();
|
||||
static void pullEvents();
|
||||
static void pollEvents();
|
||||
|
||||
static bool pressed(int keycode);
|
||||
static bool jpressed(int keycode);
|
||||
|
|
@ -43,6 +46,4 @@ public:
|
|||
static bool jactive(std::string name);
|
||||
};
|
||||
|
||||
#define _MOUSE_BUTTONS 1024
|
||||
|
||||
#endif /* WINDOW_EVENTS_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue