Changes to unify mouse and keyboard events for Lua

This commit is contained in:
Simon Robertshaw
2011-08-20 18:18:09 +01:00
parent 03ee03ed1e
commit 99b67598aa
5 changed files with 45 additions and 19 deletions

View File

@@ -11,10 +11,16 @@
#endif
#include <defines.h>
#define LUACON_MDOWN 1
#define LUACON_MUP 2
#define LUACON_MPRESS 3
#define LUACON_KDOWN 1
#define LUACON_KUP 2
void luacon_open();
int luacon_step(int mx, int my);
int luacon_mouseclick(int mx, int my, int mb, int mbq);
int luacon_keypress(char key, int modifier);
int luacon_mouseevent(int mx, int my, int mb, int event);
int luacon_keyevent(char key, int modifier, int event);
int luacon_eval(char *command);
char *luacon_geterror();
void luacon_close();