trying to fix key repeat bug
This commit is contained in:
parent
ce4dd819b9
commit
df585ffaa3
4
main.c
4
main.c
|
@ -180,11 +180,11 @@ update_controller()
|
||||||
int inc = 1;
|
int inc = 1;
|
||||||
|
|
||||||
cur = nesprobe();
|
cur = nesprobe();
|
||||||
|
pressed = (last_val ^ cur) & cur;
|
||||||
if (last_val != cur) {
|
if (last_val != cur) {
|
||||||
last_change = jiffies;
|
last_change = jiffies;
|
||||||
|
last_val = cur;
|
||||||
}
|
}
|
||||||
pressed = (last_val ^ cur) & cur;
|
|
||||||
last_val = cur;
|
|
||||||
|
|
||||||
if ((pressed & BTN_A) && ((state != JAM) || (jam_clock == 0))) {
|
if ((pressed & BTN_A) && ((state != JAM) || (jam_clock == 0))) {
|
||||||
state = JAM;
|
state = JAM;
|
||||||
|
|
Loading…
Reference in New Issue