mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-08 23:10:44 +02:00
Changes to unify mouse and keyboard events for Lua
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user