From e57b02dc9fe39a4ac8cc56f5d09eab4452a90210 Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Tue, 18 Nov 2014 08:23:56 -0800 Subject: Add Pointer Lock support While the mouse is locked, the cursor is hidden from the user and mouse events are still generated. The movement which is reported by the event indicates what would be the position change if the mouse would not have been locked. Change-Id: I79b3df5d7d644cd675a27e6c5a0da54e00b69da3 Reviewed-by: Andras Becsi --- src/core/render_widget_host_view_qt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/render_widget_host_view_qt.h') diff --git a/src/core/render_widget_host_view_qt.h b/src/core/render_widget_host_view_qt.h index fdb43dcae..6ba95213b 100644 --- a/src/core/render_widget_host_view_qt.h +++ b/src/core/render_widget_host_view_qt.h @@ -248,6 +248,7 @@ private: QRect m_cursorRect; size_t m_anchorPositionWithinSelection; size_t m_cursorPositionWithinSelection; + QPoint m_lockedMousePosition; bool m_initPending; }; -- cgit v1.2.3