Class TCastleTouchControl

Unit

Declaration

type TCastleTouchControl = class(TCastleUserInterface)

Description

Warning: this symbol is deprecated: use TCastleTouchNavigation

Touch user interface to navigate in a 3D world. Shows one "lever", that can be moved up/down/left/right, and controls the movement while Walking or Flying.

Hierarchy

Overview

Methods

Protected procedure PreferredSize(var PreferredWidth, PreferredHeight: Single); override;
Public constructor Create(AOwner: TComponent); override;
Public procedure Render; 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;
Published property Scale: Single read FScale write SetScale default 1;

Description

Methods

Protected procedure PreferredSize(var PreferredWidth, PreferredHeight: Single); override;
 
Public constructor Create(AOwner: TComponent); override;
 
Public procedure Render; 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;

Set position of touch control. Right now this simply sets the anchor using TCastleUserInterface.Anchor and friends. Tip: Use TCastleContainer.UIScaling to have the anchors automatically scale with screen size.

The size of the control is set to be constant physical size, so it's not affected by TCastleContainer.UIScaling, only by TCastleContainer.Dpi.

Published property Scale: Single read FScale write SetScale default 1;
 

Generated by PasDoc 0.16.0.