Changed mouse and keyboard to push directly to event.c's queue
This commit is contained in:
15
src/mouse.h
15
src/mouse.h
@@ -8,22 +8,9 @@ enum {
|
||||
MOUSE_BUTTON_MAX
|
||||
};
|
||||
|
||||
enum {
|
||||
MOUSE_PRESSED,
|
||||
MOUSE_RELEASED,
|
||||
MOUSE_MOVED
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
int type;
|
||||
int x, y;
|
||||
int dx, dy;
|
||||
int button;
|
||||
} mouse_Event;
|
||||
|
||||
|
||||
void mouse_init(void);
|
||||
int mouse_poll(mouse_Event *e);
|
||||
void mouse_update(void);
|
||||
int mouse_isDown(int button);
|
||||
int mouse_getX(void);
|
||||
int mouse_getY(void);
|
||||
|
||||
Reference in New Issue
Block a user