Skip to content

title: "getKey" description: TRSE built-in method (from IDE help)


getKey

Systems: C64, MEGA65, C128, VIC20
Parameters:


[byte] = GetKey( );

Description

On C64 and Vic 20 - reads the keyboard and return the highest key pressed.

Vic 20 Example

if (getkey() = KEY_NONE) then // no key is pressed if (getkey() = KEY_SPACE) then // spacebar is pressed