Skip to navigation

Elite on the BBC Micro and NES

Keyboard: DJOY

[BBC Master version]

Name: DJOY [Show more] Type: Subroutine Category: Keyboard Summary: Scan the keyboard for cursor key or digital joystick movement
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * TT17 calls DJOY
IF _COMPACT .DJOY JSR TT17X \ Call TT17X to read the digital joystick and return \ deltas as appropriate JMP TJ1 \ Jump to TJ1 in the TT17 routine to check for cursor \ key presses and return the combined deltas for the \ digital joystick and cursor keys, returning from the \ subroutine using a tail call ENDIF