From d5acb180fd04b6dced596ada2a005467b2e75382 Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 3 Jan 2018 23:52:03 +0100 Subject: changed KEY_ENTER into NEWLINE. made separate module for naming keys --- asciifarm/client/inputhandling.hy | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'asciifarm/client/inputhandling.hy') diff --git a/asciifarm/client/inputhandling.hy b/asciifarm/client/inputhandling.hy index ab51037..dbe5dd4 100644 --- a/asciifarm/client/inputhandling.hy +++ b/asciifarm/client/inputhandling.hy @@ -1,15 +1,6 @@ (require [asciifarm.client.keymacros [*]]) -(import [curses]) - -(setv prenamedkeys { ; or should this be def? - 10 "KEY_ENTER" -}) - -(defn nameFromKey [key] - (if (in key prenamedkeys) - (get prenamedkeys key) - (str (curses.keyname key) "utf-8"))) +(import [asciifarm.client.keynames [nameFromKey]]) (defclass InputHandler [] -- cgit