Morph review first wave
This commit is contained in:
parent
ecb9ca0dc2
commit
d813cbd592
23 changed files with 117 additions and 136 deletions
|
@ -865,10 +865,10 @@ BatteryLevelState EmulatedController::GetBattery() const {
|
|||
return controller.battery_state;
|
||||
}
|
||||
|
||||
void EmulatedController::TriggerOnChange(ControllerTriggerType type, bool is_service_update) {
|
||||
for (const std::pair<int, ControllerUpdateCallback> poller_pair : callback_list) {
|
||||
void EmulatedController::TriggerOnChange(ControllerTriggerType type, bool is_npad_service_update) {
|
||||
for (const auto& poller_pair : callback_list) {
|
||||
const ControllerUpdateCallback& poller = poller_pair.second;
|
||||
if (!is_service_update && poller.is_service) {
|
||||
if (!is_npad_service_update && poller.is_npad_service) {
|
||||
continue;
|
||||
}
|
||||
if (poller.on_change) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue