| Package | laya.events |
| Class | public class KeyLocation |
| Inheritance | KeyLocation Object |
KeyLocation 类包含表示在键盘或类似键盘的输入设备上按键位置的常量。
KeyLocation 常数用在键盘事件对象的 keyLocation 属性中。
| Constant | Defined By | ||
|---|---|---|---|
| LEFT : uint = 1 [static]
表示激活的键在左侧键位置(此键有多个可能的位置)。
| KeyLocation | ||
| NUM_PAD : uint = 3 [static]
表示激活的键位于数字键盘或者是使用对应于数字键盘的虚拟键激活的。
注意:此属性只在flash模式下有效。
| KeyLocation | ||
| RIGHT : uint = 2 [static]
表示激活的键在右侧键位置(此键有多个可能的位置)。
| KeyLocation | ||
| STANDARD : uint = 0 [static]
表示激活的键不区分位于左侧还是右侧,也不区分是否位于数字键盘(或者是使用对应于数字键盘的虚拟键激活的)。
| KeyLocation | ||
| LEFT | Constant |
public static const LEFT:uint = 1表示激活的键在左侧键位置(此键有多个可能的位置)。
| NUM_PAD | Constant |
public static const NUM_PAD:uint = 3
表示激活的键位于数字键盘或者是使用对应于数字键盘的虚拟键激活的。
注意:此属性只在flash模式下有效。
| RIGHT | Constant |
public static const RIGHT:uint = 2表示激活的键在右侧键位置(此键有多个可能的位置)。
| STANDARD | Constant |
public static const STANDARD:uint = 0表示激活的键不区分位于左侧还是右侧,也不区分是否位于数字键盘(或者是使用对应于数字键盘的虚拟键激活的)。