Morph review first wave

This commit is contained in:
german77 2021-10-22 23:04:06 -05:00 committed by Narr the Reg
parent ecb9ca0dc2
commit d813cbd592
23 changed files with 117 additions and 136 deletions

View file

@ -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) {