mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-18 22:21:21 +02:00
Mouse and keyboard events, replace luaL_openlib() with luaL_register() and move mousex and mousey out of the global table and into the 'tpt' table
This commit is contained in:
@@ -12,8 +12,9 @@
|
||||
#include <defines.h>
|
||||
|
||||
void luacon_open();
|
||||
int luacon_step(int mx, int my, int mb, int mbq, char key);
|
||||
int luacon_keypress(char key);
|
||||
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_eval(char *command);
|
||||
char *luacon_geterror();
|
||||
void luacon_close();
|
||||
@@ -45,6 +46,10 @@ int luatpt_set_shortcuts(lua_State* l);
|
||||
int luatpt_delete(lua_State* l);
|
||||
int luatpt_register_step(lua_State* l);
|
||||
int luatpt_unregister_step(lua_State* l);
|
||||
int luatpt_register_mouseclick(lua_State* l);
|
||||
int luatpt_unregister_mouseclick(lua_State* l);
|
||||
int luatpt_register_keypress(lua_State* l);
|
||||
int luatpt_unregister_keypress(lua_State* l);
|
||||
int luatpt_input(lua_State* l);
|
||||
int luatpt_message_box(lua_State* l);
|
||||
int luatpt_get_numOfParts(lua_State* l);
|
||||
|
Reference in New Issue
Block a user