Castle Game Engine: CastleControls: Class TCastleTouchControl

# Class TCastleTouchControl
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleControls ## 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 TComponent TInputListener TUIControl TUIRectangularControl TCastleTouchControl ## Overview ### Methods
| `constructor Create(AOwner: TComponent); override;`
| `procedure Render; override;`
| `procedure ContainerResize(const AContainerWidth, AContainerHeight: Cardinal); override;`
| `function Width: Cardinal;`
| `function Height: Cardinal;`
| `function Rect: TRectangle; override;`
| `function PositionInside(const Position: TVector2Single): boolean; override;`
| `function Press(const Event: TInputPressRelease): boolean; override;`
| `function Release(const Event: TInputPressRelease): boolean; override;`
| `function Motion(const Event: TInputMotion): boolean; override;`
| `procedure SetTouchMode(const Value: TCastleTouchCtlMode);`
| `procedure GetSensorRotation(var X, Y, Z, Angle: Double);`
| `procedure GetSensorTranslation(var X, Y, Z, Length: Double);`
### Properties
| `property TouchMode: TCastleTouchCtlMode read FTouchMode write SetTouchMode default ctcmWalking;`
| `property Position: TCastleTouchPosition read FPosition write SetPosition default tpManual;`
## Description ### Methods
| `constructor Create(AOwner: TComponent); override;`
| `procedure Render; override;`
| `procedure ContainerResize(const AContainerWidth, AContainerHeight: Cardinal); override;`
| `function Width: Cardinal;`
Size of this control, ignoring GetExists.
| `function Height: Cardinal;`
| `function Rect: TRectangle; override;`
| `function PositionInside(const Position: TVector2Single): boolean; override;`
| `function Press(const Event: TInputPressRelease): boolean; override;`
| `function Release(const Event: TInputPressRelease): boolean; override;`
| `function Motion(const Event: TInputMotion): boolean; override;`
| `procedure SetTouchMode(const Value: TCastleTouchCtlMode);`
| `procedure GetSensorRotation(var X, Y, Z, Angle: Double);`
| `procedure GetSensorTranslation(var X, Y, Z, Length: Double);`
### Properties
| `property TouchMode: TCastleTouchCtlMode read FTouchMode write SetTouchMode default ctcmWalking;`
| `property Position: TCastleTouchPosition read FPosition write SetPosition default tpManual;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:09