blockKeyboardInput
Keyboard input implementation for interactive simulations
Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices).
Information
This block reads data from the keyboard. The arrow keys, space and return are monitored. Note, that keystrokes will not be captured and the focused window will process them. Via the parameter sampleTime the input sampling rate is chosen.Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Period | sampleTime | 0.01 | sample time for input update |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | keyUp | ||
| Modelica.Blocks.Interfaces.BooleanOutput | keyDown | ||
| Modelica.Blocks.Interfaces.BooleanOutput | keyRight | ||
| Modelica.Blocks.Interfaces.BooleanOutput | keyLeft | ||
| Modelica.Blocks.Interfaces.BooleanOutput | keyReturn | ||
| Modelica.Blocks.Interfaces.BooleanOutput | keySpace |