game.input vocabulary
Factor handbook ยป Vocabulary index


Documentation
Game controller input

Metadata
Parents:game
Tags:games
Authors:Joe Groff


Words

Tuple classes
ClassSuperclassSlots
controller tuplehandle
controller-state tuplex y z rx ry rz slider pov buttons
game-input-not-open tuple
keyboard-state tuplekeys
mouse-state tupledx dy scroll-dx scroll-dy buttons


Generic words
WordStack effect
(close-game-input)( -- )
(open-game-input)( -- )
(reset-game-input)( -- )
calibrate-controller( controller -- )
get-controllers( -- sequence )
instance-id( controller -- id )
product-id( controller -- id )
product-string( controller -- string )
read-controller( controller -- controller-state )
read-keyboard( -- keyboard-state )
read-mouse( -- mouse-state )
reset-mouse( -- )
vibrate-controller( controller motor1 motor2 -- )


Symbol words
game-input-backend
game-input-opened
pov-down
pov-down-left
pov-down-right
pov-left
pov-neutral
pov-right
pov-up
pov-up-left
pov-up-right
pressed
released


Ordinary words
WordStack effect
button-delta( old? new? -- delta )
buttons-delta( old-buttons new-buttons -- delta )
buttons-delta-as( old-buttons new-buttons exemplar -- delta )
close-game-input( -- )
find-controller-instance( product-id instance-id -- controller/f )
find-controller-products( product-id -- sequence )
game-input-not-open( -- * )
game-input-opened?( -- ? )
open-game-input( -- )
with-game-input( quot -- )


Class predicate words
WordStack effect
controller-state?( object -- ? )
controller?( object -- ? )
game-input-not-open?( object -- ? )
keyboard-state?( object -- ? )
mouse-state?( object -- ? )


Files


Metadata files


Children from resource:basis
VocabularySummary
game.input.dinputDirectInput backend for game.input
game.input.gtk2Linux backend for game input.
game.input.iokitIOKit HID Manager backend for game.input
game.input.scancodesScan code constants for HID keyboards
game.input.x11Linux backend for game input.
game.input.xinputXInput backend for game.input, borrows keyboard and mouse handling from game.input.dinput


Children from resource:extra
VocabularySummary
game.input.demos