Map and lock mouse cursor on surfaces
Hello everyone,
what I'm basically trying to achieve is a behaviour similar to the demo scene accessible through Rift's Configuration Utility:

When the mouse cursor is moved within the application's window, it is mapped to the virtual screen in distant.
Currently, I have no idea how to realize such behaviour. Where can I get the cursor position relative to the app window?
Any hints are much appreciated. Thanks in advance.
what I'm basically trying to achieve is a behaviour similar to the demo scene accessible through Rift's Configuration Utility:

When the mouse cursor is moved within the application's window, it is mapped to the virtual screen in distant.
Currently, I have no idea how to realize such behaviour. Where can I get the cursor position relative to the app window?
Any hints are much appreciated. Thanks in advance.
