Handbook
Glossary
buttons-delta-as ( old-buttons new-buttons exemplar -- delta )
Game controller input
Prev:
buttons-delta ( old-buttons new-buttons -- delta )
Vocabulary
game
.
input
Inputs
old-buttons
a
sequence
new-buttons
a
sequence
exemplar
a
sequence
Outputs
delta
a sequence of
pressed
,
released
, or
f
Word description
Like
buttons-delta
, but returns a sequence matching the type of the
exemplar
.
See also
button-delta
,
buttons-delta
Definition
USING:
kernel
sequences
;
IN:
game.input
:
buttons-delta-as
( old-buttons new-buttons exemplar -- delta )
[
button-delta
]
swap
2map-as
;
inline