Skip to navigation

Keyboard: ReadKeyboard

Name: ReadKeyboard [Show more] Type: Subroutine Category: Keyboard Summary: Enable the keyboard and read a character from it
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * MainGameLoop calls ReadKeyboard * MainTitleLoop calls ReadKeyboard * PlayGame calls ReadKeyboard * SecretCodeError calls ReadKeyboard

Returns: A The character read from the keyboard
.ReadKeyboard JSR EnableKeyboard \ Select the keyboard as the input stream and flush the \ keyboard buffer \ Fall through into ReadCharacter to read a character \ from the keyboard and return it in A