From 25c5eac5e6ca1035db1eddd7bea9ac78531da57e Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 28 Dec 2023 11:23:49 -0500 Subject: Delete manuals! Good riddance! These are hosted on files.dthompson.us now! --- manuals/sly/Keyboard.html | 137 ---------------------------------------------- 1 file changed, 137 deletions(-) delete mode 100644 manuals/sly/Keyboard.html (limited to 'manuals/sly/Keyboard.html') diff --git a/manuals/sly/Keyboard.html b/manuals/sly/Keyboard.html deleted file mode 100644 index b0de8f3..0000000 --- a/manuals/sly/Keyboard.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - -Sly: Keyboard - - - - - - - - - - - - - - - - - - - - -
-

-Next: , Up: Input   [Contents][Index]

-
-
- -

4.4.1 Keyboard

- -
-
(use-modules (sly input keyboard))
-
- -

Keyboard hooks, signals, and procedures. -

-
-
Scheme Variable: key-press-hook
-

This hook is run whenever a key is pressed down. Procedures added to -this hook should accept two arguments: key, a symbol, and -char, a unicode character. -

- -
-
Scheme Variable: key-release-hook
-

This hook is run whenever a key is released. Procedures added to this -hook should accept two arguments: key, a symbol, and -char, a unicode character. -

- -
-
Scheme Signal: key-last-down
-

The last key pressed. -

- -
-
Scheme Signal: key-last-up
-

The last key released. -

- -
-
Scheme Procedure: key-down? key
-

Create a signal for the state of key. The signal value is -#t when key is pressed and #f otherwise. -

- -

A lot of games use directional keys to control the player. The below -procedure and signals make this style of movement easy to use. -

-
-
Scheme Procedure: key-directions up down left right
-

Create a signal whose value is a 2D unit vector that can be used for -8-directional movement. The vector is determined by the state of the -directional keys: up, down, left, right. -

- -
-
Scheme Signal: key-arrows
-

A 2D directional vector based on the state of the arrow keys. -

- -
-
Scheme Signal: key-wasd
-

A 2D directional vector based on the state of the WASD keys. -

- - - - - - -- cgit v1.2.3