ProtoFlux:TouchableEvents: Difference between revisions

From Resonite Wiki
Created a page for the Touchable Events node.
 
m YoshBot moved page ProtoFlux:Touchable Events to ProtoFlux:TouchableEvents: Automated: removing spaces from ProtoFlux namespace
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
|Globals=
|Globals=
[
[
{"Name":"EventSource", "Type":"Dummy"}
{"Name":"EventSource", "Type":"TouchEventRelay"}
]
]
|}}
|}}
Line 53: Line 53:
== Globals ==  
== Globals ==  


=== EventSource (???) ===
=== EventSource ([[Component:TouchEventRelay|TouchEventRelay]]) ===
??? to read events from.
The TouchEventRelay component to read events from.


[[Category:ProtoFlux:Interaction]]
[[Category:ProtoFlux:Interaction]]

Latest revision as of 00:37, 21 August 2025

Touchable Events
Pressed
Hover
Touch
Point
Tip
Type
Source
EventSource
null
Interactions

The Touchable Events node takes in a global Event Source reference and will listen for events from that global reference. When it detects something happening, it will fire events depending on what happens, along with other data.

Outputs

OnEvent (Call)

Fires an Impulse when the event happens.

Hover (EventState)

The event state that defines this hover.

Touch (EventState)

The event state that defines this touch.

Point (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. Also see: Coordinate spaces

Tip (float3)

The tip of the touchable.

Source (Component)

The source of the button press.

When using the laser on the button, this returns with RelayTouchSource.

When physically pressing the button, this returns with TipTouchSource.

Globals

EventSource (TouchEventRelay)

The TouchEventRelay component to read events from.