Touchscreen Triggers added
This commit is contained in:
parent
f205e99f9b
commit
eb34ac8581
|
@ -93,10 +93,10 @@ NSInteger start_button = 11;
|
||||||
kcode[0] &= ~(DC_BTN_Y);
|
kcode[0] &= ~(DC_BTN_Y);
|
||||||
}
|
}
|
||||||
if (button == controller.img_lt || button.tag == left_trigger) {
|
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) {
|
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) {
|
if (button == controller.img_start || button.tag == start_button) {
|
||||||
kcode[0] &= ~(DC_BTN_START);
|
kcode[0] &= ~(DC_BTN_START);
|
||||||
|
@ -131,10 +131,10 @@ NSInteger start_button = 11;
|
||||||
kcode[0] |= (DC_BTN_Y);
|
kcode[0] |= (DC_BTN_Y);
|
||||||
}
|
}
|
||||||
if (button == controller.img_lt || button.tag == left_trigger) {
|
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) {
|
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) {
|
if (button == controller.img_start || button.tag == start_button) {
|
||||||
kcode[0] |= (DC_BTN_START);
|
kcode[0] |= (DC_BTN_START);
|
||||||
|
|
Loading…
Reference in New Issue