Skip to content

Commit

Permalink
input fix
Browse files Browse the repository at this point in the history
  • Loading branch information
technicaljicama committed Apr 21, 2023
1 parent 6acafcd commit cdffef3
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions platform/psp/os_psp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,14 @@ void OS_PSP::process_keys() {

last++;

if (pad.Buttons != 0) {
for(int i = 0; i < 16; i++) {
if (pad.Buttons & buttons[i]) {
last = input->joy_button(last, 0, i, true);
}
}
} else {
for(int i = 0; i < 16; i++) {
if (!(pad.Buttons & buttons[i])) {
last = input->joy_button(last, 0, i, false);
}
for(int i = 0; i < 16; i++) {
if (pad.Buttons & buttons[i]) {
last = input->joy_button(last, 0, i, true);
} else {
last = input->joy_button(last, 0, i, false);
}
}

}

void OS_PSP::delete_main_loop() {
Expand Down

0 comments on commit cdffef3

Please sign in to comment.