modelTestInputKeyboardKey
Example for keyboard input using the KeyboardKeyInput block
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Basic example of using a keyboard as input device. For this example the parameter keyCode is set to the "space" key. Therefore, pressing space while the simulation is running will turn the output of the block to true, otherwise it is false
Components
| Type | Name | Default | Description |
|---|---|---|---|
| OperatingSystem.RealtimeSynchronize | realtimeSynchronize | ||
| InputDevices.KeyboardKeyInput | keyboardKeyInput |