diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-08 05:11:47 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-08 05:11:47 (GMT) |
| commit | 9e218f1847f065a6637c7ca4bf4b5047b4b694c2 (patch) | |
| tree | 7984063f1f9fcfe52fe511a88d5beaefce440e8e /src/cat/LuaScriptInterface.cpp | |
| parent | ca143945be21c89a63efca7303b8bb2f1e190fc7 (diff) | |
| download | powder-9e218f1847f065a6637c7ca4bf4b5047b4b694c2.zip powder-9e218f1847f065a6637c7ca4bf4b5047b4b694c2.tar.gz | |
change right click button id to 4 for lua events, to match old tpt
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
| -rw-r--r-- | src/cat/LuaScriptInterface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp index 49f1d70..8cf35c3 100644 --- a/src/cat/LuaScriptInterface.cpp +++ b/src/cat/LuaScriptInterface.cpp @@ -1653,6 +1653,8 @@ bool LuaScriptInterface::OnMouseMove(int x, int y, int dx, int dy) bool LuaScriptInterface::OnMouseDown(int x, int y, unsigned button) { + if (button == 3) + button = 4; luacon_mousedown = true; luacon_mousebutton = button; return luacon_mouseevent(x, y, button, LUACON_MDOWN, 0); @@ -1660,6 +1662,8 @@ bool LuaScriptInterface::OnMouseDown(int x, int y, unsigned button) bool LuaScriptInterface::OnMouseUp(int x, int y, unsigned button) { + if (button == 3) + button = 4; luacon_mousedown = false; return luacon_mouseevent(x, y, button, LUACON_MUP, 0); } |
