2017-01-13 22:40:12 +00:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2017 rxi
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or modify it
|
|
|
|
|
* under the terms of the MIT license. See LICENSE for details.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-09-24 10:41:12 +01:00
|
|
|
#ifndef MOUSE_H
|
|
|
|
|
#define MOUSE_H
|
|
|
|
|
|
|
|
|
|
enum {
|
|
|
|
|
MOUSE_BUTTON_LEFT,
|
|
|
|
|
MOUSE_BUTTON_RIGHT,
|
|
|
|
|
MOUSE_BUTTON_MIDDLE,
|
2016-10-15 17:40:23 +01:00
|
|
|
MOUSE_BUTTON_MAX
|
|
|
|
|
};
|
|
|
|
|
|
2016-10-15 15:52:16 +01:00
|
|
|
|
2016-09-24 10:41:12 +01:00
|
|
|
void mouse_init(void);
|
2016-10-16 11:41:56 +01:00
|
|
|
void mouse_update(void);
|
2016-10-15 17:40:23 +01:00
|
|
|
int mouse_isDown(int button);
|
|
|
|
|
int mouse_getX(void);
|
|
|
|
|
int mouse_getY(void);
|
2016-09-24 10:41:12 +01:00
|
|
|
|
|
|
|
|
#endif
|