Handbook
Glossary
button-mask>buttons ( mask -- buttons )
Vocabulary
game
.
input
.
x11
.
buttons
Inputs
mask
an
integer
Outputs
buttons
a
sequence
Word description
Converts an X11 pointer state mask to five booleans in X11 button order. Keyboard modifier bits are ignored.
Definition
USING:
kernel
math
sequences
;
IN:
game.input.x11.buttons
:
button-mask>buttons
( mask -- buttons )
{
8 9 10 11 12
}
[
bit?
]
with
map
;