summary refs log tree commit diff stats
path: root/tests/manyloc/keineschweine/lib/input_helpers.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-01 15:44:23 +0200
committerAraq <rumpf_a@web.de>2018-05-02 13:34:54 +0200
commit74fe7a800b0c2ade3260b8a2f7bc72ea4fd8dc03 (patch)
tree9cace45a8f3fcfa255061a7d9ea208e58ec85f61 /tests/manyloc/keineschweine/lib/input_helpers.nim
parent5ac94d26b3691395c40d93109d85fe29d1f14db1 (diff)
downloadNim-74fe7a800b0c2ade3260b8a2f7bc72ea4fd8dc03.tar.gz
make tests green again
Diffstat (limited to 'tests/manyloc/keineschweine/lib/input_helpers.nim')
-rw-r--r--tests/manyloc/keineschweine/lib/input_helpers.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manyloc/keineschweine/lib/input_helpers.nim b/tests/manyloc/keineschweine/lib/input_helpers.nim
index 1953cb58c..ff1286c8d 100644
--- a/tests/manyloc/keineschweine/lib/input_helpers.nim
+++ b/tests/manyloc/keineschweine/lib/input_helpers.nim
@@ -5,8 +5,8 @@ type
   TInputFinishedProc* = proc()
   TKeyCallback = proc()
   PKeyClient* = ref object
-    onKeyDown: TTable[int32, TKeyCallback]
-    onKeyUp: TTable[int32, TKeyCallback]
+    onKeyDown: Table[int32, TKeyCallback]
+    onKeyUp: Table[int32, TKeyCallback]
     name: string
   PTextInput* = ref object
     text*: string
@@ -134,5 +134,5 @@ iterator pollEvents*(window: PRenderWindow): PEvent =
     of EvtMouseButtonReleased: addButtonEvent(event.mouseButton.button, up)
     of EvtTextEntered: recordText(activeInput, event.text)
     of EvtMouseMoved: setMousePos(event.mouseMove.x, event.mouseMove.y)
-    else: nil
+    else: discard
     yield(addr event)