Commit a7f93092 authored by bitplane's avatar bitplane

Added mouse button states to drag/move events

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2216 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ba385262
......@@ -168,7 +168,7 @@ bool CGUIWindow::OnEvent(const SEvent& event)
Dragging = false;
return true;
case EMIE_MOUSE_MOVED:
if ( !event.MouseInput.isLeftPressed () )
if ( !event.MouseInput.isLeftPressed() )
Dragging = false;
if (Dragging)
......
......@@ -201,13 +201,15 @@ namespace irr
void *_window;
CGLContextObj _cglcontext;
void *_oglcontext;
int _width;
int _height;
int _width,
_height;
std::map<int,int> _keycodes;
int _screenWidth;
int _screenHeight;
int _screenWidth,
_screenHeight;
bool _active;
bool IsShiftDown, IsControlDown;
bool IsShiftDown,
IsControlDown;
u32 MouseButtonStates;
void pollJoysticks();
};
......
This diff is collapsed.
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