Class TCastleTouchControl

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCastleTouchControl = class(TUIRectangularControl)

Description

Control for touch interfaces. Shows one "lever", that can be moved up/down/left/right, and controls the movement while Walking or Flying.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public procedure Render; override;
Public procedure ContainerResize(const AContainerWidth, AContainerHeight: Cardinal); override;
Public function Width: Cardinal;
Public function Height: Cardinal;
Public function Rect: TRectangle; override;
Public function PositionInside(const Position: TVector2Single): boolean; override;
Public function Press(const Event: TInputPressRelease): boolean; override;
Public function Release(const Event: TInputPressRelease): boolean; override;
Public function Motion(const Event: TInputMotion): boolean; override;
Public procedure SetTouchMode(const Value: TCastleTouchCtlMode);
Public procedure GetSensorRotation(var X, Y, Z, Angle: Double);
Public procedure GetSensorTranslation(var X, Y, Z, Length: Double);

Properties

Published property TouchMode: TCastleTouchCtlMode read FTouchMode write SetTouchMode default ctcmWalking;
Published property Position: TCastleTouchPosition read FPosition write SetPosition default tpManual;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public procedure Render; override;
 
Public procedure ContainerResize(const AContainerWidth, AContainerHeight: Cardinal); override;
 
Public function Width: Cardinal;

Size of this control, ignoring GetExists.

Public function Height: Cardinal;
 
Public function Rect: TRectangle; override;
 
Public function PositionInside(const Position: TVector2Single): boolean; override;
 
Public function Press(const Event: TInputPressRelease): boolean; override;
 
Public function Release(const Event: TInputPressRelease): boolean; override;
 
Public function Motion(const Event: TInputMotion): boolean; override;
 
Public procedure SetTouchMode(const Value: TCastleTouchCtlMode);
 
Public procedure GetSensorRotation(var X, Y, Z, Angle: Double);
 
Public procedure GetSensorTranslation(var X, Y, Z, Length: Double);
 

Properties

Published property TouchMode: TCastleTouchCtlMode read FTouchMode write SetTouchMode default ctcmWalking;
 
Published property Position: TCastleTouchPosition read FPosition write SetPosition default tpManual;
 

Generated by PasDoc 0.13.0 on 2014-10-26 05:15:11