Touchscreen Triggers added

This commit is contained in:
brand175 2018-07-13 20:51:54 -07:00 committed by GitHub
parent f205e99f9b
commit eb34ac8581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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