Download Fluxus documentation

Transcript
Fluxus Manual [version 0.16] : This work is licensed under Creative Commons Attribution-Share Alike 2.5 Generic
(set­help­locale! locale­string)
Returns void
Sets the language for the documentation
Example
(set-help-locale! "pt") ; switch to portuguese
(set-help-locale! "en") ; and back to english
(help function­string)
Returns void
Displays help information on a fluxus function. For running in the repl mainly.
Example
(help "pop")
(key­pressed key­string)
Returns boolean
Returns true if the specified key is currently pressed down.
Example
(when (key-pressed "q") (display "q pressed!"))
(keys­down)
Returns keys-list
Returns a list of keys pressed down
Example
(display (keys-down))(newline)
(key­special­pressed key­number)
Returns boolean
Returns true if the specified special key is currently pressed down. Special keys
are ones which do not map to ascii values. The easiest way of finding what they
are is to print out the result of key-special-pressed while holding down the key
you are after.
Example
(when
(when
(when
(when
(key-special-pressed
(key-special-pressed
(key-special-pressed
(key-special-pressed
100)
102)
101)
103)
(display
(display
(display
(display
"left cursor pressed"))
"right cursor pressed"))
"up cursor pressed"))
"down cursor pressed"))
Page 165