diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-05 13:54:24 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-05 13:54:24 (GMT) |
| commit | 4ebe56f65c44fb64f023d624a3f62c87fc2d749c (patch) | |
| tree | ad134722825c479d83c775251182bd6cb7b4050b /includes | |
| parent | 98b6c4b0016c4116834bd023e45b2ef0f447218a (diff) | |
| download | powder-4ebe56f65c44fb64f023d624a3f62c87fc2d749c.zip powder-4ebe56f65c44fb64f023d624a3f62c87fc2d749c.tar.gz | |
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
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/luaconsole.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/luaconsole.h b/includes/luaconsole.h index 53043f0..f10e025 100644 --- a/includes/luaconsole.h +++ b/includes/luaconsole.h @@ -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); |
