mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-03 09:40:18 +00:00
SteamTarget: Move mousecursor inside the overlay after console has got focus again
This commit is contained in:
parent
8d6f186d70
commit
6e7480c601
@ -155,11 +155,6 @@ void SteamTargetRenderer::RunSfWindowLoop()
|
||||
|
||||
//Actually activate the overlaywindow
|
||||
SetFocus(sfWindow.getSystemHandle());
|
||||
|
||||
//Move the mouse cursor inside the overlaywindow
|
||||
//this is neccessary because steam doesn't want to switch to big picture bindings if mouse isn't inside
|
||||
SetCursorPos(16, 16);
|
||||
|
||||
//by activating the consolewindow **and bringing it to the foreground** we can trick steam so the controller stays in game bindings
|
||||
SetFocus(consoleHwnd);
|
||||
sf::Clock clock;
|
||||
@ -167,6 +162,11 @@ void SteamTargetRenderer::RunSfWindowLoop()
|
||||
{
|
||||
Sleep(1);
|
||||
}
|
||||
|
||||
//Move the mouse cursor inside the overlaywindow
|
||||
//this is neccessary because steam doesn't want to switch to big picture bindings if mouse isn't inside
|
||||
SetCursorPos(16, 16);
|
||||
|
||||
}
|
||||
} else {
|
||||
if (bNeedFocusSwitch)
|
||||
|
Loading…
Reference in New Issue
Block a user