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) ...@@ -168,7 +168,7 @@ bool CGUIWindow::OnEvent(const SEvent& event)
Dragging = false; Dragging = false;
return true; return true;
case EMIE_MOUSE_MOVED: case EMIE_MOUSE_MOVED:
if ( !event.MouseInput.isLeftPressed () ) if ( !event.MouseInput.isLeftPressed() )
Dragging = false; Dragging = false;
if (Dragging) if (Dragging)
......
...@@ -201,13 +201,15 @@ namespace irr ...@@ -201,13 +201,15 @@ namespace irr
void *_window; void *_window;
CGLContextObj _cglcontext; CGLContextObj _cglcontext;
void *_oglcontext; void *_oglcontext;
int _width; int _width,
int _height; _height;
std::map<int,int> _keycodes; std::map<int,int> _keycodes;
int _screenWidth; int _screenWidth,
int _screenHeight; _screenHeight;
bool _active; bool _active;
bool IsShiftDown, IsControlDown; bool IsShiftDown,
IsControlDown;
u32 MouseButtonStates;
void pollJoysticks(); 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