mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-03 06:30:33 +00:00
Bugfix touchjoy : make sure only the correct button is firing
This commit is contained in:
parent
805357e5ad
commit
9bbb180feb
@ -703,8 +703,10 @@ static inline void _move_button_axis(int x, int y) {
|
||||
//LOG("\tbutton neg y threshold (%d)", y);
|
||||
if (upButtonAxisButton == TOUCHED_BUTTON0) {
|
||||
joy_button0 = 0x80;
|
||||
joy_button1 = 0;
|
||||
_setup_button_object_with_char(button0Char);
|
||||
} else if (upButtonAxisButton == TOUCHED_BUTTON1) {
|
||||
joy_button0 = 0;
|
||||
joy_button1 = 0x80;
|
||||
_setup_button_object_with_char(button1Char);
|
||||
} else if (upButtonAxisButton == TOUCHED_BOTH) {
|
||||
@ -719,8 +721,10 @@ static inline void _move_button_axis(int x, int y) {
|
||||
//LOG("\tbutton pos y threshold (%d)", y);
|
||||
if (downButtonAxisButton == TOUCHED_BUTTON0) {
|
||||
joy_button0 = 0x80;
|
||||
joy_button1 = 0;
|
||||
_setup_button_object_with_char(button0Char);
|
||||
} else if (downButtonAxisButton == TOUCHED_BUTTON1) {
|
||||
joy_button0 = 0;
|
||||
joy_button1 = 0x80;
|
||||
_setup_button_object_with_char(button1Char);
|
||||
} else if (downButtonAxisButton == TOUCHED_BOTH) {
|
||||
|
Loading…
Reference in New Issue
Block a user