Class TPHXInput

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPHXInput = class(TObject)

Description

The input class manages different input devices

Hierarchy

  • TObject
  • TPHXInput

Overview

Methods

Protected procedure EventHandler(Sender: TObject; const Event: TPHXEvent);
Public constructor Create;
Public destructor Destroy; override;
Public procedure DefaultDevices;
Public procedure DefaultBindings;
Public procedure Update;
Public procedure LoadBindings(const FileName: String); overload;
Public procedure LoadBindings(Stream: TStream); overload;
Public procedure SaveBindings(const FileName: String); overload;
Public procedure SaveBindings(Stream: TStream); overload;

Properties

Public property Active: Boolean read FActive write SetActive;
Public property States: TPHXInputStates read FStates write FStates;
Public property Devices: TPHXInputDevices read FDevices;
Public property Bindings: TPHXInputBindings read FBindings;
Public property Keyboard: TPHXKeyboard read FKeyboard;
Public property Mouse: TPHXMouse read FMouse;

Description

Methods

Protected procedure EventHandler(Sender: TObject; const Event: TPHXEvent);

Handles a phoenix event

Public constructor Create;

Creates a new input

Public destructor Destroy; override;

Destroys this input

Public procedure DefaultDevices;

Load the default devices

Public procedure DefaultBindings;

Load the default key bindings

Public procedure Update;

Update all attached devices and the states

Public procedure LoadBindings(const FileName: String); overload;

Load the input configuration from a file

Public procedure LoadBindings(Stream: TStream); overload;

Load the input configuration from a stream

Public procedure SaveBindings(const FileName: String); overload;

Save the input configuration to a file

Public procedure SaveBindings(Stream: TStream); overload;

Save the input configuration to a stream

Properties

Public property Active: Boolean read FActive write SetActive;

Get and sets if the input is active

Public property States: TPHXInputStates read FStates write FStates;

Get the states of the input device

Public property Devices: TPHXInputDevices read FDevices;

Get all the attatched devices of this input

Public property Bindings: TPHXInputBindings read FBindings;

Bindings of the input device

Public property Keyboard: TPHXKeyboard read FKeyboard;

Get the default keyboard

Public property Mouse: TPHXMouse read FMouse;

Get the default mouse


Generated by PasDoc 0.13.0 on 2013-08-26 11:02:39