check-axis-movement ( key-negative key-positive -- unit/f )


Vocabulary
raylib.demo

Inputs
key-negativean object
key-positivean object


Outputs
unit/fan object


Definition


: check-axis-movement
( key-negative key-positive -- unit/f )
[ is-key-down ] bi@ 2array
{ { { t f } [ -1.0 ] } { { f t } [ 1.0 ] } [ drop f ] } case
;