Class TInputShortcutList

Unit

Declaration

type TInputShortcutList = class(specialize TObjectList<TInputShortcut>)

Description

TODO: Maybe introduce a way to limit (TKey, or all shortcuts?) to activate only when specific modifier is pressed.

Right now both TWalkCamera and TExamineCamera check modifiers and have not configurable behavior:

- TWalkCamera allows inputs only when modifiers = []. Except Input_Right/LeftRot and Input_Up/DownRotate that have special meaning when Ctrl is pressed (see TWalkCamera.AllowSlowerRotations). - TExamineCamera allows Inputs_Move only when modifiers = [mkCtrl]. Other TExamineCamera are allowed only when modifiers = [].

Hierarchy

  • TObjectList
  • TInputShortcutList

Overview

Methods

Public function FindName(const Name: string): TInputShortcut;
Public function SeekMatchingShortcut(const Event: TInputPressRelease): TInputShortcut;
Public procedure RestoreDefaults;
Public function SeekConflict(out ConflictDescription: string): boolean;
Public procedure LoadFromConfig(const Config: TCastleConfig);
Public procedure SaveToConfig(const Config: TCastleConfig);

Description

Methods

Public function FindName(const Name: string): TInputShortcut;

Find shortcut by name, returns Nil if not found.

Public function SeekMatchingShortcut(const Event: TInputPressRelease): TInputShortcut;

Seeks for a shortcut that has matching key or mouse button or mouse wheel. Nil if not found.

Public procedure RestoreDefaults;
 
Public function SeekConflict(out ConflictDescription: string): boolean;
 
Public procedure LoadFromConfig(const Config: TCastleConfig);

Load customized input shortcuts from a config file, for example from UserConfig.

Public procedure SaveToConfig(const Config: TCastleConfig);

Save customized input shortcuts to a config file, for example to a UserConfig.


Generated by PasDoc 0.15.0.