summaryrefslogtreecommitdiff
path: root/wasp/boards/simulator
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-08-15 16:00:49 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-08-15 16:00:49 (GMT)
commit5ae327ea546e7e9b68cef0b17f6df6be3572ac08 (patch)
tree4e10b87cc42d44d5d81534741f6b6ef66a86986f /wasp/boards/simulator
parenta87b3faa4aed891623cc82b667465d5ef49cac72 (diff)
wasp: Introduce a NEXT event
This is useful for devices that do not have touchscreens. It can be used to cycle through the quick ring and to check out notifications. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/simulator')
-rw-r--r--wasp/boards/simulator/display.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wasp/boards/simulator/display.py b/wasp/boards/simulator/display.py
index 273f705..260173c 100644
--- a/wasp/boards/simulator/display.py
+++ b/wasp/boards/simulator/display.py
@@ -124,6 +124,9 @@ class CST816SSim():
self.regs[1] = 4
elif key.keysym.sym == sdl2.SDLK_RIGHT:
self.regs[1] = 3
+ elif key.keysym.sym == sdl2.SDLK_n:
+ # Allow NEXT to be tested on the simulator
+ self.regs[1] = 253
self.regs[3] = 0x80
self.raise_interrupt(pins)