ProtoFlux:Standard Controller: Difference between revisions

From Resonite Wiki
m →‎Usage: adding basic info to the node.
Added in inputs and output descriptions.
Line 36: Line 36:
== Examples ==
== Examples ==


[[Category:ProtoFlux:Devices]]
== Inputs ==
 
=== User ([[User]]) ===
 
The user we are getting controller information from.
 
=== Node ([[Type:Chirality|Chirality]]) ===
 
The controller side to get information from.
 
== Outputs ==
 
=== IsActive ([[Type:bool|bool]]) ===
 
Is this controller actively being used right now.
 
=== Type ([[Type:Type|Type]]) ===
 
The controller type being used.
 
=== BatteryLevel ([[Type:float|float]]) ===
 
The battery level of this controller.
 
=== IsBatteryCharging ([[Type:bool|bool]]) ===
 
Is this controller currently charging.
 
=== Primary ([[Type:bool|bool]]) ===
 
Is primary pressed right now.
 
=== Secondary ([[Type:bool|bool]]) ===
 
Is secondary pressed right now.
 
=== Grab ([[Type:float|float]]) ===
 
Is the controller's grip button pressed right now.
 
=== Menu ([[Type:bool|bool]]) ===
 
Is the menu button being pressed right now.
 
=== Strength ([[Type:float|float]]) ===
 
How much the trigger is pressed currently.
 
=== Axis ([[Type:float2|float2]]) ===
 
The position of this controller's joystick.
 
[[Category:ProtoFlux:Devices:Controllers]]
[[Category:ProtoFlux:Devices:Controllers]]

Revision as of 16:59, 17 April 2024

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Standard Controller
User
IsActive
Node
Type
BatteryLevel
IsBatteryCharging
Primary
Secondary
Grab
Menu
Strength
Axis
Controllers

This node provides information for generic controllers.


Usage

the standard controller node allows one to interact with the players Virtual reality controller.

say you want to get the user's grip and trigger strength, just feed it a user and a "Chirality input" for the left or right controller and volla!

just pull an output from the grip boolean and the strength float value and now you have the users grip and trigger on/off and strength!

Examples

Inputs

User (User)

The user we are getting controller information from.

Node (Chirality)

The controller side to get information from.

Outputs

IsActive (bool)

Is this controller actively being used right now.

Type (Type)

The controller type being used.

BatteryLevel (float)

The battery level of this controller.

IsBatteryCharging (bool)

Is this controller currently charging.

Primary (bool)

Is primary pressed right now.

Secondary (bool)

Is secondary pressed right now.

Grab (float)

Is the controller's grip button pressed right now.

Menu (bool)

Is the menu button being pressed right now.

Strength (float)

How much the trigger is pressed currently.

Axis (float2)

The position of this controller's joystick.