Ti Constructor
 
Loading...
Searching...
No Matches
userinput.c File Reference

2 useful functions for getting user input More...

Macros

#define PressAnyKey()   bcall(0x4972)
 Wait for a key to be pressed and return it in the "A" assembly register This is mostly used at the end of a program, bewarned that this(like any bcall) my mess with C vars, see https://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4972.
 

Functions

char getKey ()
 DEPRECATED Scan for keypresses and returns the currently pressed key
 

Detailed Description

2 useful functions for getting user input

You don't actually need getKey() unless custom interupts (like greyscale.c) are used.

Optional #defines

Function Documentation

◆ getKey()

char getKey ( )

DEPRECATED Scan for keypresses and returns the currently pressed key

Returns
char of the currently pressed key (see: https://wikiti.brandonw.net/index.php?title=83Plus:RAM:843F)

DEPRECATED You probably do not need this, but if interupts are disable/customized or greyscale is active, this will work for you.