We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent2f8e072 commitbd1afb4Copy full SHA for bd1afb4
internal_filesystem/boot_fri3d-2024.py
@@ -120,8 +120,8 @@ def read_joystick():
120
# Key repeat configuration
121
# This whole debounce logic is only necessary because LVGL 9.2.2 seems to have an issue where
122
# the lv_keyboard widget doesn't handle PRESSING (long presses) properly, it loses focus.
123
-REPEAT_INITIAL_DELAY_MS=500# Delay before first repeat
124
-REPEAT_RATE_MS=200# Interval between repeats
+REPEAT_INITIAL_DELAY_MS=300# Delay before first repeat
+REPEAT_RATE_MS=100# Interval between repeats
125
last_key=None
126
last_state=lv.INDEV_STATE.RELEASED
127
key_press_start=0# Time when key was first pressed
@@ -133,6 +133,7 @@ def read_joystick():
133
defkeypad_read_cb(indev,data):
134
globallast_key,last_state,key_press_start,last_repeat_time
135
data.continue_reading=False
136
+since_last_repeat=0
137
138
# Check buttons and joystick
139
current_key=None