Commit 17f879c7 authored by cutealien's avatar cutealien

Oops, EMBSM_EXTRA1 and EMBSM_EXTRA2 not supported on linux, so removed from...

Oops, EMBSM_EXTRA1 and EMBSM_EXTRA2 not supported on linux, so removed from device and added comment.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2409 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 2bc2c331
......@@ -109,7 +109,11 @@ namespace irr
EMBSM_LEFT = 0x01,
EMBSM_RIGHT = 0x02,
EMBSM_MIDDLE = 0x04,
//! currently only on windows
EMBSM_EXTRA1 = 0x08,
//! currently only on windows
EMBSM_EXTRA2 = 0x10,
EMBSM_FORCE_32_BIT = 0x7fffffff
......
......@@ -793,8 +793,6 @@ bool CIrrDeviceLinux::run()
irrevent.MouseInput.ButtonStates = (event.xbutton.state & Button1Mask) ? irr::EMBSM_LEFT : 0;
irrevent.MouseInput.ButtonStates |= (event.xbutton.state & Button3Mask) ? irr::EMBSM_RIGHT : 0;
irrevent.MouseInput.ButtonStates |= (event.xbutton.state & Button2Mask) ? irr::EMBSM_MIDDLE : 0;
irrevent.MouseInput.ButtonStates |= (event.xbutton.state & Button4Mask) ? irr::EMBSM_EXTRA1 : 0;
irrevent.MouseInput.ButtonStates |= (event.xbutton.state & Button5Mask) ? irr::EMBSM_EXTRA2 : 0;
postEventFromUser(irrevent);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment