mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
Add files via upload
This commit is contained in:
commit
e1cdcf01e9
49 changed files with 2866 additions and 0 deletions
32
src/window/Events.h
Normal file
32
src/window/Events.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef WINDOW_EVENTS_H_
|
||||
#define WINDOW_EVENTS_H_
|
||||
|
||||
#include "Window.h"
|
||||
|
||||
typedef unsigned int uint;
|
||||
|
||||
class Events {
|
||||
public:
|
||||
static bool* _keys;
|
||||
static uint* _frames;
|
||||
static uint _current;
|
||||
static float deltaX;
|
||||
static float deltaY;
|
||||
static float x;
|
||||
static float y;
|
||||
static bool _cursor_locked;
|
||||
static bool _cursor_started;
|
||||
|
||||
static int initialize();
|
||||
static void pullEvents();
|
||||
|
||||
static bool pressed(int keycode);
|
||||
static bool jpressed(int keycode);
|
||||
|
||||
static bool clicked(int button);
|
||||
static bool jclicked(int button);
|
||||
|
||||
static void toogleCursor();
|
||||
};
|
||||
|
||||
#endif /* WINDOW_EVENTS_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue