mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 20:02:40 +01:00
Prevent mouse issues when focus is lost
This commit is contained in:
parent
8e82604fc3
commit
fc7642a4d7
@ -99,7 +99,7 @@ void IngameState::tick(float dt)
|
|||||||
autolookTimer = std::max(autolookTimer - dt, 0.f);
|
autolookTimer = std::max(autolookTimer - dt, 0.f);
|
||||||
|
|
||||||
auto player = game->getPlayer();
|
auto player = game->getPlayer();
|
||||||
if( player && player->isInputEnabled() )
|
if( player && player->isInputEnabled() && game->hasFocus() )
|
||||||
{
|
{
|
||||||
float qpi = glm::half_pi<float>();
|
float qpi = glm::half_pi<float>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user