Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.Interaction.PressEventSignaler Class Reference

Send press, holdPress, and endPress events based on set values of Pressed and RaycastTriggerManager More...

Inherits MonoBehaviour.

Inherited by C2M2.Interaction.RaycastEventSignaler.

Protected Member Functions

virtual void OnHoverBegin ()
 
virtual void OnHoverHold ()
 
virtual void OnHoverEnd ()
 
virtual void OnPressBegin ()
 
virtual void OnPressHold ()
 
virtual void OnPressEnd ()
 

Properties

bool Pressing [get, set]
 Was the input source pressed in the previous frame? More...
 
bool Hovering [get, set]
 

Private Attributes

bool pressing = false
 
bool hovering = false
 

Detailed Description

Send press, holdPress, and endPress events based on set values of Pressed and RaycastTriggerManager

Make a class inherit from this class. The child class should monitor for input, and then set press whenever input is received. This calss will handle checking for whether the input is a press, a hold, or an end press

Member Function Documentation

◆ OnHoverBegin()

virtual void C2M2.Interaction.PressEventSignaler.OnHoverBegin ( )
protectedvirtual

◆ OnHoverEnd()

virtual void C2M2.Interaction.PressEventSignaler.OnHoverEnd ( )
protectedvirtual

◆ OnHoverHold()

virtual void C2M2.Interaction.PressEventSignaler.OnHoverHold ( )
protectedvirtual

◆ OnPressBegin()

virtual void C2M2.Interaction.PressEventSignaler.OnPressBegin ( )
protectedvirtual

◆ OnPressEnd()

virtual void C2M2.Interaction.PressEventSignaler.OnPressEnd ( )
protectedvirtual

◆ OnPressHold()

virtual void C2M2.Interaction.PressEventSignaler.OnPressHold ( )
protectedvirtual

Member Data Documentation

◆ hovering

bool C2M2.Interaction.PressEventSignaler.hovering = false
private

◆ pressing

bool C2M2.Interaction.PressEventSignaler.pressing = false
private

Property Documentation

◆ Hovering

bool C2M2.Interaction.PressEventSignaler.Hovering
getsetprotected

◆ Pressing

bool C2M2.Interaction.PressEventSignaler.Pressing
getsetprotected

Was the input source pressed in the previous frame?


The documentation for this class was generated from the following file: