mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-26 06:10:20 +00:00
btdrv-mitm: set dualshock4 state on initialize to make sure the controller is recognised quickly
This commit is contained in:
parent
e0e999534f
commit
3a847c82d1
2 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,13 @@ namespace ams::controller {
|
|||
|
||||
}
|
||||
|
||||
Result Dualshock4Controller::initialize(void) {
|
||||
R_TRY(FakeSwitchController::initialize());
|
||||
R_TRY(this->updateControllerState());
|
||||
|
||||
return ams::ResultSuccess();
|
||||
}
|
||||
|
||||
Result Dualshock4Controller::setPlayerLed(u8 led_mask) {
|
||||
u8 i = 0;
|
||||
while (led_mask >>= 1) { ++i; }
|
||||
|
|
|
@ -116,6 +116,7 @@ namespace ams::controller {
|
|||
Dualshock4Controller(const bluetooth::Address *address)
|
||||
: FakeSwitchController(ControllerType_Dualshock4, address), m_ledColour({0, 0, 0}) { };
|
||||
|
||||
Result initialize(void);
|
||||
Result setPlayerLed(u8 led_mask);
|
||||
Result setLightbarColour(Dualshock4LedColour colour);
|
||||
|
||||
|
|
Loading…
Reference in a new issue