PointerKeyboardModifiers


Contains the state of modifier keys, such as Shift, Control, and Alt, as well as the state of the lock keys, such as Caps Lock and Num Lock.

Summary

Public constructors

Cmn

Extension properties

Boolean

true when the AltGraph key is pressed.

Cmn
android
Boolean

true when the Alt key is pressed.

Cmn
android
Boolean

true when the keyboard's Caps Lock is on.

Cmn
android
Boolean

true when the Control key is pressed.

Cmn
android
Boolean

true when the Function key is pressed.

Cmn
android
Boolean

true when the Meta key is pressed.

Cmn
android
Boolean

true when the keyboard's Num Lock is on.

Cmn
android
Boolean

true when the keyboard's Scroll Lock is on.

Cmn
android
Boolean

true when the Shift key is pressed.

Cmn
android
Boolean

true when the Sym key is pressed.

Cmn
android

Public constructors

PointerKeyboardModifiers

PointerKeyboardModifiers(packedValue: NativePointerKeyboardModifiers)

Extension properties

isAltGraphPressed

val PointerKeyboardModifiers.isAltGraphPressedBoolean

true when the AltGraph key is pressed.

isAltPressed

val PointerKeyboardModifiers.isAltPressedBoolean

true when the Alt key is pressed. This is commonly associated with the Option key on some keyboards.

isCapsLockOn

val PointerKeyboardModifiers.isCapsLockOnBoolean

true when the keyboard's Caps Lock is on.

isCtrlPressed

val PointerKeyboardModifiers.isCtrlPressedBoolean

true when the Control key is pressed.

isFunctionPressed

val PointerKeyboardModifiers.isFunctionPressedBoolean

true when the Function key is pressed.

isMetaPressed

val PointerKeyboardModifiers.isMetaPressedBoolean

true when the Meta key is pressed. This is commonly associated with the Windows or Command key on some keyboards.

isNumLockOn

val PointerKeyboardModifiers.isNumLockOnBoolean

true when the keyboard's Num Lock is on.

isScrollLockOn

val PointerKeyboardModifiers.isScrollLockOnBoolean

true when the keyboard's Scroll Lock is on.

isShiftPressed

val PointerKeyboardModifiers.isShiftPressedBoolean

true when the Shift key is pressed.

isSymPressed

val PointerKeyboardModifiers.isSymPressedBoolean

true when the Sym key is pressed.