refactor Events

This commit is contained in:
A-Lex-Ra
2023-12-03 23:24:52 +06:00
parent ba83b27179
commit 911e828602
5 changed files with 120 additions and 109 deletions
+4 -3
View File
@@ -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_ */