mirror of
https://github.com/nealey/hw-rollerderby-scoreboard
synced 2025-01-17 04:14:36 -07:00
trying to fix key repeat bug
This commit is contained in:
parent
ce4dd819b9
commit
df585ffaa3
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue