DoubleClick
Entity → ceramic.DoubleClick (Class)
Implements: Component
Component that detects double-click/double-tap events on visuals.
This component tracks consecutive clicks and emits a doubleClick event when two clicks occur within the specified time and movement thresholds.
Instance Members
threshold: FloatMaximum pointer movement allowed between clicks. If the pointer moves more than this distance, the double-click is canceled.
maxDelay: FloatMaximum time delay between clicks in seconds. Clicks must occur within this time to count as a double-click.
entity: VisualThe visual entity this component is attached to.
initializerName: Stringcancel(): VoidCancel the current double-click detection. Resets the state and stops tracking clicks.
new(): VoidPrivate Members
pressed: BoolfirstClickTime: FloatpointerStartX: FloatpointerStartY: FloatemitDoubleClick(): VoidEvent fired when the visual is double-clicked/double-tapped.
bindAsComponent(): Void| Name | Type |
|---|---|
info |
TouchInfo |
| Name | Type |
|---|---|
info |
TouchInfo |
| Name | Type |
|---|---|
info |
TouchInfo |
handleBlur(): Void| Name | Type |
|---|---|
entity |
Entity |
getEntity(): Entity| Returns |
|---|
| Entity |
Metadata
| Name | Parameters |
|---|---|
:build |
ceramic.macros.ComponentMacro.build() |
:autoBuild |
ceramic.macros.ComponentMacro.build() |
:build |
ceramic.macros.EntityMacro.buildForCompletion() |
:autoBuild |
ceramic.macros.EntityMacro.buildForCompletion() |
:build |
tracker.macros.EventsMacro.build() |
:autoBuild |
tracker.macros.EventsMacro.build() |