The Key library provides the following functions.

Functions

Name Description
IsDownPressed Gets the current state of the Q2 key.
IsEachkeyPressed Gets the pressed state of the specified key.
IsMultiplekeyPressed Gets the simultaneous pressing status of multiple keys.
IsSideKeyPressed Gets the current state of the side key.
IsTriggerPressed Gets the current state of the SCAN key.
IsUpPressed Gets the current state of the Q1 key.
kbhit Checks to see if a keystroke is available.
ResetKey Clears the keyboard buffer.
SetEcho Sets the echo mode.
SetKeyinputMode Specifies how the OS controls the shift state of keystrokes.
SetKeyinputTimer Sets the confirmation time for keystrokes when ALTERNATE_SHIFT_MODE is specified.
SetSideKey Sets the side key state (enabled / disabled).
SetSideKeyCode Sets the key code returned when the side key is pressed.
SetSideKeyVibrator Sets the state of the side key vibrator.
SetUseKeyClick Sets the key click sound state (enabled / disabled).
SetUseKeyClick2 Sets the volume of the key click sound.
ShiftState Sets the shift state.

Last updated: 2022/04/08