Ev3devKit.Devices.Input.get_key_state – ev3devkit Reference Manual
Packages
ev3devkit
Ev3devKit
Devices
Input
EV3_BUTTONS_NAME
EV3_SPEAKER_BEEP_NAME
capabilities
device_name
event_device_name
name
do_bell
do_tone
get_bit_at
get_key_state
has_capability
has_key
has_sound_capability
key_down
key_up
get_key_state
Description:
public
bool
get_key_state
(
uint
key_code)
Check if a key is currently pressed.
Parameters:
key_code
The key to look for.
Returns:
true
if the key is pressed.