1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

Prevent mouse issues when focus is lost

This commit is contained in:
Daniel Evans 2015-05-09 02:27:07 +01:00
parent 8e82604fc3
commit fc7642a4d7

View File

@ -99,7 +99,7 @@ void IngameState::tick(float dt)
autolookTimer = std::max(autolookTimer - dt, 0.f);
auto player = game->getPlayer();
if( player && player->isInputEnabled() )
if( player && player->isInputEnabled() && game->hasFocus() )
{
float qpi = glm::half_pi<float>();