quyse / inanity

Cross-platform C++ game engine.
MIT License
30 stars 5 forks source link

Abstract window mouse capture and native mouse pointers #5

Closed quyse closed 10 years ago

quyse commented 11 years ago

Windows should support two modes: mouse capture mode and free mouse mode. Mouse capture mode could be used while main gameplay is in progress. Free mouse mode could be used in pause menu, to allow moving mouse out of the window (both in fullscreen and windowed modes). Modes should be switched programmatically by game logic.

As a linked issue, windows should allow to use native mouse pointers (instead of graphics-rendered ones). Native mouse pointers are always more responsible to user input, uses the same mouse ballistics as the main system, and, despite of limitations of native windowing systems, leads to more seamless integration with operating system.

quyse commented 10 years ago

Mouse capture (which is called mouse lock) was introduced in c1006ec1aab244899d0dfc33cda2a3f5aa076ff4 along with mouse cursor visibility. So closing task, native mouse cursors (images) will be a separate task.