mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-29 05:18:03 +03:00
Add hotkey for centering mouse in render window.
This commit is contained in:
parent
8f0d702e5f
commit
4d27022d0e
5 changed files with 21 additions and 0 deletions
|
@ -421,6 +421,16 @@ Common::Vec2 ControllerInterface::GetWindowInputScale() const
|
|||
return {1 / ar, 1.f};
|
||||
}
|
||||
|
||||
void ControllerInterface::SetMouseCenteringRequested(bool center)
|
||||
{
|
||||
m_requested_mouse_centering = center;
|
||||
}
|
||||
|
||||
bool ControllerInterface::IsMouseCenteringRequested() const
|
||||
{
|
||||
return m_requested_mouse_centering.load();
|
||||
}
|
||||
|
||||
// Register a callback to be called when a device is added or removed (as from the input backends'
|
||||
// hotplug thread), or when devices are refreshed
|
||||
// Returns a handle for later removing the callback.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue