Handbook
Glossary
on-key-reload-code ( key -- )
Vocabulary
raylib
.
live-coding
Inputs
key
KeyboardKey
Outputs
None
Word description
Binds a key to reload the game from within a game. This is the same as calling
refresh-all
from the Listener.
Definition
USING:
kernel
raylib
raylib.live-coding.private
vocabs.refresh
;
IN:
raylib.live-coding
:
on-key-reload-code
( key -- )
is-key-pressed
[
[
refresh-all
]
with-listener-context
]
when
;