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: Int = 0)

Extension properties

PointerKeyboardModifiers.isAltGraphPressed

val PointerKeyboardModifiers.isAltGraphPressed: Boolean

true when the AltGraph key is pressed.

PointerKeyboardModifiers.isAltPressed

val PointerKeyboardModifiers.isAltPressed: Boolean

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

PointerKeyboardModifiers.isCapsLockOn

val PointerKeyboardModifiers.isCapsLockOn: Boolean

true when the keyboard's Caps Lock is on.

PointerKeyboardModifiers.isCtrlPressed

val PointerKeyboardModifiers.isCtrlPressed: Boolean

true when the Control key is pressed.

PointerKeyboardModifiers.isFunctionPressed

val PointerKeyboardModifiers.isFunctionPressed: Boolean

true when the Function key is pressed.

PointerKeyboardModifiers.isMetaPressed

val PointerKeyboardModifiers.isMetaPressed: Boolean

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

PointerKeyboardModifiers.isNumLockOn

val PointerKeyboardModifiers.isNumLockOn: Boolean

true when the keyboard's Num Lock is on.

PointerKeyboardModifiers.isScrollLockOn

val PointerKeyboardModifiers.isScrollLockOn: Boolean

true when the keyboard's Scroll Lock is on.

PointerKeyboardModifiers.isShiftPressed

val PointerKeyboardModifiers.isShiftPressed: Boolean

true when the Shift key is pressed.

PointerKeyboardModifiers.isSymPressed

val PointerKeyboardModifiers.isSymPressed: Boolean

true when the Sym key is pressed.