From eb34ac85816ccca52461d38d3e92018ab430e987 Mon Sep 17 00:00:00 2001 From: brand175 <20964160+brand175@users.noreply.github.com> Date: Fri, 13 Jul 2018 20:51:54 -0700 Subject: [PATCH] Touchscreen Triggers added --- shell/apple/emulator-ios/emulator/EmulatorView.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);