mirror of
https://github.com/glest/glest-source.git
synced 2025-09-26 07:28:59 +02:00
Added logic to NOT trigger camera mousemove if keyboard has a key pressed so you can scroll with keys and still move mouse simultaneously
This commit is contained in:
@@ -111,6 +111,7 @@ private:
|
||||
static unsigned int lastMouseEvent; /** for use in mouse hover calculations */
|
||||
static MouseState mouseState;
|
||||
static Vec2i mousePos;
|
||||
static bool isKeyPressedDown;
|
||||
|
||||
static void setLastMouseEvent(unsigned int lastMouseEvent) {Window::lastMouseEvent = lastMouseEvent;}
|
||||
static unsigned int getLastMouseEvent() {return Window::lastMouseEvent;}
|
||||
@@ -127,6 +128,7 @@ protected:
|
||||
public:
|
||||
static bool handleEvent();
|
||||
static void revertMousePos();
|
||||
static bool isKeyDown() { return isKeyPressedDown; }
|
||||
|
||||
|
||||
Window();
|
||||
|
Reference in New Issue
Block a user