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

TypeNameDefaultDescription
Modelica.Units.SI.PeriodsampleTime0.01sample time for input update

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutputkeyUp
Modelica.Blocks.Interfaces.BooleanOutputkeyDown
Modelica.Blocks.Interfaces.BooleanOutputkeyRight
Modelica.Blocks.Interfaces.BooleanOutputkeyLeft
Modelica.Blocks.Interfaces.BooleanOutputkeyReturn
Modelica.Blocks.Interfaces.BooleanOutputkeySpace