Class «keys»
Last updated
Last updated
This article is automatically translated from Russian by Google Translator.
Used to operate the buttons on the robot's remote control.
Sent when the button with the specified code is pressed or released.
The first parameter is the code of the button, the second - 1 if the button is pressed, 0 if released.
Returns true
if the button with the specified code is currently pressed.
Possible options:
KeysEnum.Left
(code105),
KeysEnum.Up
(code 103),
KeysEnum.Down
(code 108),
KeysEnum.Enter
(code 28),
KeysEnum.Right
(code 106),
KeysEnum.Power
(code 116),
KeysEnum.Esc
(code 1).
Resets memorized button presses.
Returns whether or not a button with the specified code was pressed, reset the remembered presses for that button. Possible options:
KeysEnum.Left
(code 105),
KeysEnum.Up
(code 103),
KeysEnum.Down
(code 108),
KeysEnum.Enter
(code 28),
KeysEnum.Right
(code 106),
KeysEnum.Power
(code 116),
KeysEnum.Esc
(code 1).
Method
Description
Sent when the button with the specified code is pressed or released.
Returns true
if the button with the specified code is currently pressed.
Сбрасывает запомненные нажатия кнопок.
Returns whether or not a button with the specified code was pressed, reset the remembered presses for that button.