Constructor
new Keyboard(id)
Parameters:
Name | Type | Description |
---|---|---|
id | string | the device ID. |
- Source
Methods
(package) keyDown(key) → (non-null) {Action}
Generates a key down action.
Parameters:
Name | Type | Description |
---|---|---|
key | Key | | the key to press. This key may be specified as a Key value, a specific unicode code point, or a string containing a single unicode code point. |
- Source
Returns:
a new key down action.
- Type:
- Action
(package) keyUp(key) → (non-null) {Action}
Generates a key up action.
Parameters:
Name | Type | Description |
---|---|---|
key | Key | | the key to press. This key may be specified as a Key value, a specific unicode code point, or a string containing a single unicode code point. |
- Source
Returns:
a new key up action.
- Type:
- Action