diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-01 13:10:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 13:10:34 -0800 |
commit | 1ff341f3dc66622478d699d4e4ba21b210608783 (patch) | |
tree | 14e6868fc3de8c1f1874bd9b69688ee3f802f5f0 /src/yuzu/configuration/configure_input_player.h | |
parent | 9e109849ff3f61c0f1e586ebc9c16c413eb7f175 (diff) | |
parent | 904ac1daec186a98c33f2e8ac140d919ca8fe0a7 (diff) |
Merge pull request #5209 from Morph1984/refactor-controller-connect
configure_input: Modify controller connection delay
Diffstat (limited to 'src/yuzu/configuration/configure_input_player.h')
-rw-r--r-- | src/yuzu/configuration/configure_input_player.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_input_player.h b/src/yuzu/configuration/configure_input_player.h index 9c30879a2..c4ae50de7 100644 --- a/src/yuzu/configuration/configure_input_player.h +++ b/src/yuzu/configuration/configure_input_player.h @@ -54,6 +54,18 @@ public: /// Save all button configurations to settings file. void ApplyConfiguration(); + /** + * Attempts to connect the currently selected controller in the HID backend. + * This function will not do anything if it is not connected in the frontend. + */ + void TryConnectSelectedController(); + + /** + * Attempts to disconnect the currently selected controller in the HID backend. + * This function will not do anything if the configuration has not changed. + */ + void TryDisconnectSelectedController(); + /// Set the connection state checkbox (used to sync state). void ConnectPlayer(bool connected); |