Loading...
Searching...
No Matches
PointerLock.hpp
1#pragma once
2#include <QPointF>
3
4#include <score_lib_base_export.h>
5
6class QWindow;
7
8namespace score
9{
11struct SCORE_LIB_BASE_EXPORT PointerLock
12{
13 using MotionCallback = void (*)(QPointF);
14 using ReleaseCallback = void (*)();
15
16 static bool beginRelative(
17 QWindow* window, MotionCallback onMotion, ReleaseCallback onRelease) noexcept;
18 static bool active() noexcept;
19 static QPointF takeDelta() noexcept;
20 static void endRelative() noexcept;
21};
22}
Base toolkit upon which the software is built.
Definition Application.cpp:113
Relative ("locked") mouse motion, when the platform provides it.
Definition PointerLock.hpp:12