[][src]Module ndless::input

Getting input from th keypad and touchpad

This contains functionality to get keys pressed, as well as touchpad information.

Modules

touchpad

Enums

Key

Keys available in the Nspire keypad, including the touchpad.

Functions

any_key_pressed

Returns true if any buttons are currently pressed, including pushing the touchpad.

get_keys

Returns a Vec of pressed keys.

is_key_pressed

Returns true if the specific key is pressed. Note that you may pass either an owned Key or a borrowed &Key.

iter_keys

A more efficient way to get keys being pressed than get_keys, as iter_keys does not allocate.

key_on_pressed

Returns true if the "On" key is currently pressed.

wait_key_pressed

Suspends the program until any_key_pressed returns true.

wait_no_key_pressed

Suspends the program until any_key_pressed returns false.