KeySensor
- Last UpdatedFeb 19, 2025
- 2 minute read
Platform support
This node is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-Portable WASM platforms.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
Full support |
Full support |
Full support |
Full support |
|
|
|
|
|
|
KeySensor fields
These are the fields for KeySensor node. Only the node-specific fields are indicated, not fields obtained by inheritance.
Field inheritance: NodeBase > KeySensor
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
active |
sbool |
Optional |
true |
Enables/disables sensor. |
|
key |
sstring |
Mandatory |
Not set |
The key to be observed. |
|
keyDown |
sevent |
Read only |
Internally calculated |
Raised when key is pressed. |
|
keyUp |
sevent |
Read only |
Internally calculated |
Raised when key is released. |