Add basic support for absolute mouse input

This commit is contained in:
Cameron Gutman
2020-04-11 16:12:18 -07:00
parent 3840ee8ee7
commit ef6dfa6d91
4 changed files with 73 additions and 14 deletions
+3 -2
View File
@@ -47,7 +47,7 @@ public:
void handleMouseButtonEvent(SDL_MouseButtonEvent* event);
void handleMouseMotionEvent(SDL_MouseMotionEvent* event);
void handleMouseMotionEvent(SDL_Window* window, SDL_MouseMotionEvent* event);
void handleMouseWheelEvent(SDL_MouseWheelEvent* event);
@@ -61,7 +61,7 @@ public:
void rumble(unsigned short controllerNumber, unsigned short lowFreqMotor, unsigned short highFreqMotor);
void handleTouchFingerEvent(SDL_TouchFingerEvent* event);
void handleTouchFingerEvent(SDL_Window* window, SDL_TouchFingerEvent* event);
int getAttachedGamepadMask();
@@ -114,6 +114,7 @@ private:
int m_NumFingersDown;
int m_StreamWidth;
int m_StreamHeight;
bool m_AbsoluteMouseMode;
static const int k_ButtonMap[];
};