Feature Idea: Mouse Input Grab in Window
org.openjdk at io7m.com
Thu Dec 17 17:39:11 UTC 2020
On 2020-12-17T17:17:24 +0000
Almas Baimagambetov <almaslvl at gmail.com> wrote:
> *Use case:* 3D games or 3D modelling tools, where the application "grabs"
> (gets exclusive control of) the mouse and moving the mouse doesn't move the
This is pretty much essential for mouse-based camera control in 3D
simulations, especially when combined with a "warp cursor to center of
window" feature. Typically, the cursor will be confined to the window
and warped to the center of the window at the start of every frame.
This allows for all mouse movements to be treated as delta offsets from
the center of the window, and these can typically be passed directly
into camera handling functions.
Mark Raynsford | https://www.io7m.com
More information about the openjfx-dev