blockKeyboardKeyInput

Keyboard input implementation for interactive simulations
Diagram of KeyboardKeyInput

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 monitored key is selected via the parameter keyCode. 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
Modelica_DeviceDrivers.Blocks.InputDevices.Types.keyCodeskeyCode"Return"Monitored Key
BooleanuseKeyKombinationfalseif true, an additional key can be selected to a combination
Modelica_DeviceDrivers.Blocks.InputDevices.Types.keyCodesadditionalKeyCode"Control"Additional monitored key for key combination

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanOutputkeyState

Contents

NameDescription
getKeyCodeprotected