ClassInput & Controls@public
FlxVirtualButton
Deterministic touch/pointer button that can be bound through link.
ts
export declare class FlxVirtualButton extends FlxButton implements FlxVirtualButtonState1
Constructors
ts
constructor(id: string, x: number, y: number, label: string, options?: FlxVirtualButtonOptions)1
Constructs a new instance of the FlxVirtualButton class
| Parameter | Type | Description |
|---|---|---|
id | string | - |
x | number | - |
y | number | - |
label | string | - |
options | FlxVirtualButtonOptions | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
disabledColor | - | number | - |
highlightColor | - | number | - |
justPressed | readonly | boolean | - |
justReleased | readonly | boolean | - |
normalColor | - | number | - |
pressed | readonly | boolean | - |
pressedColor | - | number | - |
source | readonly | FlxActionVirtualButtonSource | Serializable action source for this control. |
virtualInputId | readonly | string | - |
Methods
createRenderHandle()
ts
createRenderHandle(): FlxVirtualButtonRenderHandle1
Returns: FlxVirtualButtonRenderHandle
destroy()
ts
destroy(): void1
Returns: void
update()
ts
update(): void1
Returns: void