on master help sign in
Fix the directions of `arrows` and `wasd`.
commitc2def3f29c2b65cf744cc52b57165213a1fd0785 authorevancz <info@elm-lang.org> dateSun 5 May 2013, 00:35 (14 years ago) parent5b3e7e1
1 file changed+2−2
libraries/Keyboard.elm+2−2
libraries/Keyboard.elm+2−2
@@ -14,12 +14,12 @@ type KeyCode = Int
1414-- `{ x = 1, y = 1 }` when pressing the up and right arrows.
1515-- `{ x = 0, y =-1 }` when pressing the down, left, and right arrows.
1616arrows : Signal { x:Int, y:Int }
17−arrows = N.directions 37 39 38 40
17+arrows = N.directions 38 40 37 39
1818
1919-- Just like the arrows signal, but this uses keys w, a, s, and d,
2020-- which are common controls for many computer games.
2121wasd : Signal { x:Int, y:Int }
22−wasd = N.directions 65 68 87 83
22+wasd = N.directions 87 83 65 68
2323
2424-- Custom key directions so that you can support different locales.
2525-- The plan is to have a locale independent version of this function