dasdasdasdas
This commit is contained in:
+10
-7
@@ -10,7 +10,7 @@
|
||||
|
||||
typedef unsigned int uint;
|
||||
|
||||
const short KEYS_BUFFER_SIZE = 1032;
|
||||
const short KEYS_BUFFER_SIZE = 1036;
|
||||
const short _MOUSE_KEYS_OFFSET = 1024;
|
||||
|
||||
class Events {
|
||||
@@ -18,13 +18,11 @@ public:
|
||||
static bool _keys[KEYS_BUFFER_SIZE];
|
||||
static uint _frames[KEYS_BUFFER_SIZE];
|
||||
static uint _current;
|
||||
static float deltaX;
|
||||
static float deltaY;
|
||||
static float x;
|
||||
static float y;
|
||||
static int scroll;
|
||||
static int scroll;
|
||||
static glm::vec2 delta;
|
||||
static glm::vec2 cursor;
|
||||
static bool cursor_drag;
|
||||
static bool _cursor_locked;
|
||||
static bool _cursor_started;
|
||||
static std::vector<uint> codepoints;
|
||||
static std::vector<int> pressedKeys;
|
||||
static std::unordered_map<std::string, Binding> bindings;
|
||||
@@ -42,6 +40,11 @@ public:
|
||||
static void bind(std::string name, inputtype type, int code);
|
||||
static bool active(std::string name);
|
||||
static bool jactive(std::string name);
|
||||
|
||||
static void setKey(int key, bool b);
|
||||
static void setButton(int button, bool b);
|
||||
|
||||
static void setPosition(float xpos, float ypos);
|
||||
};
|
||||
|
||||
#endif /* WINDOW_EVENTS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user