mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 04:41:42 +00: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
|
@ -106,6 +106,11 @@ public:
|
|||
// Inputs based on window coordinates should be multiplied by this.
|
||||
Common::Vec2 GetWindowInputScale() const;
|
||||
|
||||
// Request that the mouse cursor should be centered in the render window at the next opportunity.
|
||||
void SetMouseCenteringRequested(bool center);
|
||||
|
||||
bool IsMouseCenteringRequested() const;
|
||||
|
||||
HotplugCallbackHandle RegisterDevicesChangedCallback(std::function<void(void)> callback);
|
||||
void UnregisterDevicesChangedCallback(const HotplugCallbackHandle& handle);
|
||||
void InvokeDevicesChangedCallbacks() const;
|
||||
|
@ -127,6 +132,7 @@ private:
|
|||
std::atomic<int> m_populating_devices_counter;
|
||||
WindowSystemInfo m_wsi;
|
||||
std::atomic<float> m_aspect_ratio_adjustment = 1;
|
||||
std::atomic<bool> m_requested_mouse_centering = false;
|
||||
};
|
||||
|
||||
namespace ciface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue