[This is preliminary documentation and subject to change.]
Loads, stores and manages keyboard input settings for all available UserCommands.
For a list of all members of this type, see InputSettings Members
.
System.Object
SettingsBase
InputSettings
Thread Safety
Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
thread-safe.
Remarks
Keyboard input is processed by associating specific combinations of keys (either scan codes or virtual keys) and modifiers with each UserCommands.
There are three kinds of UserCommands, each using a different UserCommandInput:
-
UserCommandModifierInput represents a specific combination of keyboard modifiers (Shift, Control and Alt). E.g. Shift.
-
UserCommandKeyInput represents a key (scan code or virtual key) and a specific combination of keyboard modifiers. E.g. Alt-F4.
-
UserCommandModifiableKeyInput represents a key (scan code or virtual key), a specific combination of keyboard modifiers and a set of keyboard modifiers to ignore. E.g. Up Arrow (+ Shift) (+ Control).
Keyboard input is identified in two distinct ways:
-
Scan code
A scan code represents a specific location on the physical keyboard, irrespective of the user's locale, keyboard layout and other enviromental settings. For this reason, this is the preferred way to refer to the "main" area of the keyboard - this area varies significantly by locale and usually it is the physical location that matters.
-
Virtual key
A virtual key represents a logical key on the keyboard, irrespective of where it might be located. For keys outside the "main" area, this is much the same as scan codes and is preferred when refering to logical keys like "Up Arrow".
Requirements
Namespace:
ORTS.Settings
Assembly: ORTS.Settings (in ORTS.Settings.dll)
See Also
InputSettings Members | ORTS.Settings Namespace