From e87567fe44c9fca97d251b94d5d24ce4b590e8a3 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 1 Jan 2018 20:31:27 +0100 Subject: renamed input macro to inp to avoid possible name collision with buit-in function --- asciifarm/keybindings/keybindings.hy | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'asciifarm/keybindings/keybindings.hy') diff --git a/asciifarm/keybindings/keybindings.hy b/asciifarm/keybindings/keybindings.hy index e6dac86..f5b33cc 100644 --- a/asciifarm/keybindings/keybindings.hy +++ b/asciifarm/keybindings/keybindings.hy @@ -1,26 +1,26 @@ -"w" (input ["move" "north"]) -"s" (input ["move" "south"]) -"d" (input ["move" "east"]) -"a" (input ["move" "west"]) -"KEY_UP" (input ["move" "north"]) -"KEY_DOWN" (input ["move" "south"]) -"KEY_RIGHT" (input ["move" "east"]) -"KEY_LEFT" (input ["move" "west"]) -"e" (input ["take" (selectorvalue "ground")]) -"q" (input ["drop" (selectorvalue "inventory")]) -"E" (input ["use" (selectorvalue "inventory")]) -"r" (input ["interact" (selectorvalue "ground")]) +"w" (inp ["move" "north"]) +"s" (inp ["move" "south"]) +"d" (inp ["move" "east"]) +"a" (inp ["move" "west"]) +"KEY_UP" (inp ["move" "north"]) +"KEY_DOWN" (inp ["move" "south"]) +"KEY_RIGHT" (inp ["move" "east"]) +"KEY_LEFT" (inp ["move" "west"]) +"e" (inp ["take" (selectorvalue "ground")]) +"q" (inp ["drop" (selectorvalue "inventory")]) +"E" (inp ["use" (selectorvalue "inventory")]) +"r" (inp ["interact" (selectorvalue "ground")]) "v" (fn [client] (.select (selector "inventory") 1 True True)) "c" (fn [client] (.select (selector "ground") 1 True True)) "x" (fn [client] (.select (selector "equipment") 1 True True)) -"z" (input ["unequip" (selectorvalue "equipment")]) +"z" (inp ["unequip" (selectorvalue "equipment")]) "f" (doall [ - (input ["attack"]) - (input ["attack" "north"]) - (input ["attack" "south"]) - (input ["attack" "east"]) - (input ["attack" "west"])]) + (inp ["attack"]) + (inp ["attack" "north"]) + (inp ["attack" "south"]) + (inp ["attack" "east"]) + (inp ["attack" "west"])]) "t" (fn [client] (client.readString)) "help" "\ Controls: -- cgit