Handbook
Glossary
key-caps-gadget
Vocabulary
game
.
input
.
demos
.
key-caps
Definition
USING:
ui.gadgets
;
IN:
game.input.demos.key-caps
TUPLE:
key-caps-gadget
<
gadget
keys timer
;
Methods
USING:
accessors
game.input
game.input.demos.key-caps
kernel
timers
ui.gadgets
;
M:
key-caps-gadget
graft*
open-game-input
dup
[
update-key-caps-state
]
curry
FREQUENCY
every
>>timer
drop
;
USING:
game.input.demos.key-caps
kernel
ui.gestures
;
M:
key-caps-gadget
handle-gesture
drop
[
key-down?
]
[
key-up?
]
bi
or
not
;
USING:
game.input.demos.key-caps
kernel
ui.gadgets
;
M:
key-caps-gadget
pref-dim*
drop
KEYBOARD-SIZE
;
USING:
accessors
game.input
game.input.demos.key-caps
kernel
timers
ui.gadgets
;
M:
key-caps-gadget
ungraft*
timer>>
[
stop-timer
]
when*
close-game-input
;