ProtoFlux:Button Events: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page Button Events (ProtoFlux) to ProtoFlux:Button Events: Creating protoflux Namespace
added link to impulses
Line 26: Line 26:
== Outputs == <!--T:3-->
== Outputs == <!--T:3-->


=== Pressed (Call) ===
=== Pressed ([[Impulses|Call]]) ===
Sends an Impulse when the button in Global: IButton is pressed down
Sends an Impulse when the button in Global: IButton is pressed down


=== Pressing (Call) ===
=== Pressing ([[Impulses|Call]]) ===
Sends an Impulse every game update while the button in Global: IButton is being held down
Sends an Impulse every game update while the button in Global: IButton is being held down


=== Released (Call) ===
=== Released ([[Impulses|Call]]) ===
Sends an Impulse when the button in Global: IButton is released
Sends an Impulse when the button in Global: IButton is released


=== HoverEnter (Call) ===
=== HoverEnter ([[Impulses|Call]]) ===
Sends an Impulse a cursor/laser is brought on top of the button in Global: IButton (TODO: Does this include touching? (Ex: Physical buttons))
Sends an Impulse a cursor/laser is brought on top of the button in Global: IButton (TODO: Does this include touching? (Ex: Physical buttons))


=== HoverStay (Call) ===
=== HoverStay ([[Impulses|Call]]) ===
Sends an Impulse every game update while the button in Global: IButton is being currently being hovered over (TODO: Does this include touching? (Ex: Physical buttons))
Sends an Impulse every game update while the button in Global: IButton is being currently being hovered over (TODO: Does this include touching? (Ex: Physical buttons))


=== HoverLeave (Call) ===
=== HoverLeave ([[Impulses|Call]]) ===
Sends an Impulse a cursor/laser leaves being on top of the button in Global: IButton (TODO: Does this include touching? (Ex: Physical buttons))
Sends an Impulse a cursor/laser leaves being on top of the button in Global: IButton (TODO: Does this include touching? (Ex: Physical buttons))



Revision as of 00:31, 4 February 2024

Button Events
Pressed
Pressing
Released
HoverEnter
HoverStay
HoverLeave
Source
GlobalPoint
LocalPoint
NormalizedPoint
Button
null
Interactions

Inputs

This node contains no inputs.

Outputs

Pressed (Call)

Sends an Impulse when the button in Global: IButton is pressed down

Pressing (Call)

Sends an Impulse every game update while the button in Global: IButton is being held down

Released (Call)

Sends an Impulse when the button in Global: IButton is released

HoverEnter (Call)

Sends an Impulse a cursor/laser is brought on top of the button in Global: IButton (TODO: Does this include touching? (Ex: Physical buttons))

HoverStay (Call)

Sends an Impulse every game update while the button in Global: IButton is being currently being hovered over (TODO: Does this include touching? (Ex: Physical buttons))

HoverLeave (Call)

Sends an Impulse a cursor/laser leaves being on top of the button in Global: IButton (TODO: Does this include touching? (Ex: Physical buttons))

Source (Component)

The source of the button press (TODO: Is this a interaction laser and/or tip touch source?)

GlobalPoint (float3)

The point in global transform in the world the user's cursor is at on the surface of the button during any of this node's Impulses Example: Useful for a splash of particles where the user clicked like a click effect Also see: Coordinate spaces

LocalPoint(float3)

The point in UIX pixels within the button's local RectTransform the user's cursor is at during any of this node's Impulses Also see: Coordinate spaces

NormalizedPoint(float2)

The point from 0 to 1 in both the x and y channels within the button's local RectTransform the user's cursor is at during any of this node's Impulses. Also see: Coordinate spaces

Globals

Button (IButton)

IButton to read events from.