DigitalPulseSoftware / BurgWar

Burg'war est un jeu de plateforme/combat multijoueur en 2D écrit en C++17/Lua avec mon propre moteur de jeu : Nazara Engine.
MIT License
52 stars 9 forks source link

Keep mouse inside window #45

Open BertrandD opened 3 years ago

BertrandD commented 3 years ago

When playing in a non full screen window, the mouse might go outside the window and when you click you lose the focus (and your fight 😄 )

It could be great to constrain the mouse inside the window when playing. To move the window outside the window, press escape or open the chat.