aboutsummaryrefslogtreecommitdiff
path: root/backends/events/sdl/sdl-events.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/events/sdl/sdl-events.h')
-rw-r--r--backends/events/sdl/sdl-events.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/events/sdl/sdl-events.h b/backends/events/sdl/sdl-events.h
index f5bbfeb15c..c4c2ab406d 100644
--- a/backends/events/sdl/sdl-events.h
+++ b/backends/events/sdl/sdl-events.h
@@ -152,6 +152,12 @@ protected:
virtual bool handleAxisToMouseMotion(int16 xAxis, int16 yAxis);
/**
+ * Compute the virtual mouse movement speed factor according to the 'kbdmouse_speed' setting.
+ * The speed factor is scaled with the display size.
+ */
+ int16 computeJoystickMouseSpeedFactor() const;
+
+ /**
* Assigns the mouse coords to the mouse event. Furthermore notify the
* graphics manager about the position change.
*/