Skip to content

Commit 4c13778

Browse files
committed
Add mouse constants.
This patch adds the following globals: MOUSE_LEFT, MOUSE_RIGHT, MOUSE_MIDDLE, MOUSE_ALL Signed-off-by: xSlendiX <slendi@socopon.com>
1 parent 80696aa commit 4c13778

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua_api.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,12 @@ INPUT_PULLUP = 2\n\
327327
luaL_dostring(L, "\
328328
LOW = 0\n\
329329
HIGH = 1\n\
330+
\n");
331+
luaL_dostring(L, "\
332+
MOUSE_LEFT = 1\n\
333+
MOUSE_RIGHT = 2\n\
334+
MOUSE_MIDDLE = 4\n\
335+
MOUSE_ALL = 7\n\
330336
\n");
331337

332338
luaL_dostring(L, "function gui(char)\n\

0 commit comments

Comments
 (0)