Download Fluxus documentation
Transcript
Fluxus Manual [version 0.16] : This work is licensed under Creative Commons Attribution-Share Alike 2.5 Generic (sethelplocale! localestring) 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 functionstring) Returns void Displays help information on a fluxus function. For running in the repl mainly. Example (help "pop") (keypressed keystring) Returns boolean Returns true if the specified key is currently pressed down. Example (when (key-pressed "q") (display "q pressed!")) (keysdown) Returns keys-list Returns a list of keys pressed down Example (display (keys-down))(newline) (keyspecialpressed keynumber) 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