forked from suyu/suyu
core: hid: hid_core: Add (Enable/DIsable)AllControllerConfiguration
This commit is contained in:
parent
410df5446e
commit
940375dfbb
2 changed files with 32 additions and 0 deletions
|
@ -135,6 +135,32 @@ NpadIdType HIDCore::GetFirstNpadId() const {
|
||||||
return NpadIdType::Player1;
|
return NpadIdType::Player1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HIDCore::EnableAllControllerConfiguration() {
|
||||||
|
player_1->EnableConfiguration();
|
||||||
|
player_2->EnableConfiguration();
|
||||||
|
player_3->EnableConfiguration();
|
||||||
|
player_4->EnableConfiguration();
|
||||||
|
player_5->EnableConfiguration();
|
||||||
|
player_6->EnableConfiguration();
|
||||||
|
player_7->EnableConfiguration();
|
||||||
|
player_8->EnableConfiguration();
|
||||||
|
other->EnableConfiguration();
|
||||||
|
handheld->EnableConfiguration();
|
||||||
|
}
|
||||||
|
|
||||||
|
void HIDCore::DisableAllControllerConfiguration() {
|
||||||
|
player_1->DisableConfiguration();
|
||||||
|
player_2->DisableConfiguration();
|
||||||
|
player_3->DisableConfiguration();
|
||||||
|
player_4->DisableConfiguration();
|
||||||
|
player_5->DisableConfiguration();
|
||||||
|
player_6->DisableConfiguration();
|
||||||
|
player_7->DisableConfiguration();
|
||||||
|
player_8->DisableConfiguration();
|
||||||
|
other->DisableConfiguration();
|
||||||
|
handheld->DisableConfiguration();
|
||||||
|
}
|
||||||
|
|
||||||
void HIDCore::ReloadInputDevices() {
|
void HIDCore::ReloadInputDevices() {
|
||||||
player_1->ReloadFromSettings();
|
player_1->ReloadFromSettings();
|
||||||
player_2->ReloadFromSettings();
|
player_2->ReloadFromSettings();
|
||||||
|
|
|
@ -45,6 +45,12 @@ public:
|
||||||
/// Returns the first connected npad id
|
/// Returns the first connected npad id
|
||||||
NpadIdType GetFirstNpadId() const;
|
NpadIdType GetFirstNpadId() const;
|
||||||
|
|
||||||
|
/// Sets all emulated controllers into configuring mode.
|
||||||
|
void EnableAllControllerConfiguration();
|
||||||
|
|
||||||
|
/// Sets all emulated controllers into normal mode.
|
||||||
|
void DisableAllControllerConfiguration();
|
||||||
|
|
||||||
/// Reloads all input devices from settings
|
/// Reloads all input devices from settings
|
||||||
void ReloadInputDevices();
|
void ReloadInputDevices();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue