trying to fix key repeat bug

This commit is contained in:
Neale Pickett 2013-07-02 22:49:54 -06:00
parent ce4dd819b9
commit df585ffaa3
1 changed files with 2 additions and 2 deletions

4
main.c
View File

@ -180,11 +180,11 @@ update_controller()
int inc = 1;
cur = nesprobe();
pressed = (last_val ^ cur) & cur;
if (last_val != cur) {
last_change = jiffies;
last_val = cur;
}
pressed = (last_val ^ cur) & cur;
last_val = cur;
if ((pressed & BTN_A) && ((state != JAM) || (jam_clock == 0))) {
state = JAM;