The KeyInput (com.prosyst.mbs.services.da.items.KeyInput) reports input events which are triggered by keys. Some actions have to be applied in a specific order to result in an event.
Property |
Access |
Property Class |
Description |
|---|---|---|---|
event |
E |
KeyInputEvent |
Represents an event. |
supportedEvents |
RE |
Set<KeyInputEvent> |
Represents the supported events. |
The com.prosyst.mbs.services.da.items.KeyInputEvent represents a key input event with the key source and the actions that triggered the event. For example, the event can be triggered by a single key press and a long key press. In this case, there are two actions in the list. The actions are represented with the com.prosyst.mbs.services.da.items.KeyInputAction. The key input actions are:
KeyInputAction.PRESSED – the key has been pressed. Usually, there is a pressing and an immediate release.KeyInputAction.LONG_PRESSED – the key has been pressed for long. Usually, there is a pressing, the key is held down for a while and then it is released.KeyInputAction.HELD – the key has been held down. Usually, there is a pressing and the key is held down.KeyInputAction.RELEASED – the key has been released. Usually, there is a release after KeyInputAction.HELD.One or more actions in series trigger the event.