about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-06-05 22:22:53 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-06-05 22:22:53 -0700
commitfc094496c1a8b4d89faba8eeadc213e886217f9f (patch)
treed1908578cadba32a1da50d0d02561cd79f77cdf1
parent9e173372178c2df1dd3f6599dea5fe3c37675c6e (diff)
downloadlines.love-fc094496c1a8b4d89faba8eeadc213e886217f9f.tar.gz
document a few more keyboard primitives
-rw-r--r--reference.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/reference.md b/reference.md
index 525ae86..3426d25 100644
--- a/reference.md
+++ b/reference.md
@@ -251,6 +251,15 @@ visible on screen.
 
 ### keyboard primitives
 
+* `App.is_cursor_movement(key)` -- return `true` if `key` is a cursor movement
+  key (arrow keys, page-up/down, home/end)
+
+* `App.cmd_down()`, `App.ctrl_down`, `App.alt_down()`, `App.shift_down()` --
+  predicates for different modifier keys.
+
+* `App.any_modifier_down()` -- returns `true` if any of the modifier keys is
+  currently pressed.
+
 * `App.key_down(key)` -- returns `true` if the given key is currently pressed.
   (Based on [LÖVE](https://love2d.org/wiki/love.keyboard.isDown).)