Key

interface Key

按键操作参数接口,用于配置按键事件的各项参数

包含键码、重复次数、元状态等按键相关参数的设置和获取方法

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getKeycode(): Int

获取键码

Link copied to clipboard
abstract fun getMetaState(): Int

获取元状态

Link copied to clipboard
abstract fun getRepeat(): Int

获取重复次数

Link copied to clipboard
abstract fun setKeycode(keyCode: Int)

设置键码

Link copied to clipboard
abstract fun setMetaState(metaState: Int)

设置元状态

Link copied to clipboard
abstract fun setRepeat(repeat: Int)

设置重复次数