diff --git a/shell/apple/emulator-ios/emulator/EmulatorView.mm b/shell/apple/emulator-ios/emulator/EmulatorView.mm index 94c3b2e98..af9f2a9bf 100644 --- a/shell/apple/emulator-ios/emulator/EmulatorView.mm +++ b/shell/apple/emulator-ios/emulator/EmulatorView.mm @@ -93,10 +93,10 @@ NSInteger start_button = 11; kcode[0] &= ~(DC_BTN_Y); } if (button == controller.img_lt || button.tag == left_trigger) { - kcode[0] &= ~(DC_AXIS_LT); + lt[0] = (255); } if (button == controller.img_rt || button.tag == right_trigger) { - kcode[0] &= ~(DC_AXIS_RT); + rt[0] = (255); } if (button == controller.img_start || button.tag == start_button) { kcode[0] &= ~(DC_BTN_START); @@ -131,10 +131,10 @@ NSInteger start_button = 11; kcode[0] |= (DC_BTN_Y); } if (button == controller.img_lt || button.tag == left_trigger) { - kcode[0] |= (DC_AXIS_LT); + lt[0] = (0); } if (button == controller.img_rt || button.tag == right_trigger) { - kcode[0] |= (DC_AXIS_RT); + rt[0] = (0); } if (button == controller.img_start || button.tag == start_button) { kcode[0] |= (DC_BTN_START);