My Project
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | Properties | List of all members
UltimateRadialMenuInputManager Class Reference
Inheritance diagram for UltimateRadialMenuInputManager:

Classes

class  UltimateRadialMenuInfomation
 

Public Types

enum  InvokeAction { OnButtonDown , OnButtonClick }
 

Public Member Functions

void AddRadialMenuToList (UltimateRadialMenu radialMenu)
 [INTERNAL] Called by each Ultimate Radial Menu.
 
void SetMainCamera (Camera newMainCamera)
 Sets the camera to the provided camera parameter for calculations.
 
virtual void MouseAndKeyboardInput (ref bool enableMenu, ref bool disableMenu, ref Vector2 input, ref float distance, ref bool inputDown, ref bool inputUp, int radialMenuIndex)
 This function will catch input from the Mouse and Keyboard and modify the information to send back to the Update function.
 
virtual void ControllerInput (ref bool enableMenu, ref bool disableMenu, ref Vector2 input, ref float distance, ref bool inputDown, ref bool inputUp, int radialMenuIndex)
 This function will catch input from the Controller and modify the information to send back to the Update function.
 
virtual void TouchInput (ref bool enableMenu, ref bool disableMenu, ref Vector2 input, ref float distance, ref bool inputDown, ref bool inputUp, int radialMenuIndex)
 This function will catch touch input and modify the information to send back to the Update function.
 
virtual void VirtualRealityInput (ref bool enableMenu, ref bool disableMenu, ref Vector2 input, ref float distance, ref bool inputDown, ref bool inputUp, int radialMenuIndex)
 This function will catch input from the center of the screen and VR device and modify the information to send back to the Update function.
 
virtual void CustomInput (ref bool enableMenu, ref bool disableMenu, ref Vector2 input, ref float distance, ref bool inputDown, ref bool inputUp, int radialMenuIndex)
 This function is a virtual void to allow for easy custom input logic.
 

Public Attributes

InvokeAction invokeAction = InvokeAction.OnButtonDown
 
bool onMenuRelease = false
 
bool disableOnInteract = false
 
bool keyboardInput = true
 
int mouseButtonIndex = 0
 
string enableButtonKeyboard = ""
 
bool controllerInput = false
 
string horizontalAxisController = "Horizontal"
 
string verticalAxisController = "Vertical"
 
string interactButtonController = "Cancel"
 
string enableButtonController = "Submit"
 
bool invertHorizontal = false
 
bool invertVertical = false
 
bool touchInput = false
 
bool dynamicPositioning = false
 
float activationRadius = 0.25f
 
float activationHoldTime = 0.25f
 
bool virtualRealityInput = false
 
string interactButtonVirtualReality = "Submit"
 
bool customInput = false
 

Properties

static UltimateRadialMenuInputManager Instance [get]
 
List< UltimateRadialMenuInfomationUltimateRadialMenuInformations [get]
 

Member Function Documentation

◆ ControllerInput()

virtual void UltimateRadialMenuInputManager.ControllerInput ( ref bool  enableMenu,
ref bool  disableMenu,
ref Vector2  input,
ref float  distance,
ref bool  inputDown,
ref bool  inputUp,
int  radialMenuIndex 
)
inlinevirtual

This function will catch input from the Controller and modify the information to send back to the Update function.

Parameters
enableMenuA reference to the enableMenu boolean from the Update function. Any changes to this variable in the ControllerInput function will be reflected in the Update function.
disableMenuA reference to the disableMenu boolean from the Update function. Any changes to this variable in the ControllerInput function will be reflected in the Update function.
inputA reference to the input Vector2 from the Update function. Any changes to this variable in the ControllerInput function will be reflected in the Update function.
distanceA reference to the distance float from the Update function. Any changes to this variable in the ControllerInput function will be reflected in the Update function.
inputDownA reference to the inputDown boolean from the Update function. Any changes to this variable in the ControllerInput function will be reflected in the Update function.
inputUpA reference to the inputUp boolean from the Update function. Any changes to this variable in the ControllerInput function will be reflected in the Update function.
radialMenuIndexThe current index of the selected radial button.

◆ CustomInput()

virtual void UltimateRadialMenuInputManager.CustomInput ( ref bool  enableMenu,
ref bool  disableMenu,
ref Vector2  input,
ref float  distance,
ref bool  inputDown,
ref bool  inputUp,
int  radialMenuIndex 
)
inlinevirtual

This function is a virtual void to allow for easy custom input logic.

Parameters
enableMenuA reference to the enableMenu boolean from the Update function. Any changes to this variable in the CustomInput function will be reflected in the Update function.
disableMenuA reference to the disableMenu boolean from the Update function. Any changes to this variable in the CustomInput function will be reflected in the Update function.
inputA reference to the input Vector2 from the Update function. Any changes to this variable in the CustomInput function will be reflected in the Update function.
distanceA reference to the distance float from the Update function. Any changes to this variable in the CustomInput function will be reflected in the Update function.
inputDownA reference to the inputDown boolean from the Update function. Any changes to this variable in the CustomInput function will be reflected in the Update function.
inputUpA reference to the inputUp boolean from the Update function. Any changes to this variable in the CustomInput function will be reflected in the Update function.
radialMenuIndexThe current index of the selected radial button.

◆ MouseAndKeyboardInput()

virtual void UltimateRadialMenuInputManager.MouseAndKeyboardInput ( ref bool  enableMenu,
ref bool  disableMenu,
ref Vector2  input,
ref float  distance,
ref bool  inputDown,
ref bool  inputUp,
int  radialMenuIndex 
)
inlinevirtual

This function will catch input from the Mouse and Keyboard and modify the information to send back to the Update function.

Parameters
enableMenuA reference to the enableMenu boolean from the Update function. Any changes to this variable in the MouseAndKeyboardInput function will be reflected in the Update function.
disableMenuA reference to the disableMenu boolean from the Update function. Any changes to this variable in the MouseAndKeyboardInput function will be reflected in the Update function.
inputA reference to the input Vector2 from the Update function. Any changes to this variable in the MouseAndKeyboardInput function will be reflected in the Update function.
distanceA reference to the distance float from the Update function. Any changes to this variable in the MouseAndKeyboardInput function will be reflected in the Update function.
inputDownA reference to the inputDown boolean from the Update function. Any changes to this variable in the ControllerInput function will be reflected in the Update function.
inputUpA reference to the inputUp boolean from the Update function. Any changes to this variable in the ControllerInput function will be reflected in the Update function.
radialMenuIndexThe current index of the selected radial button.

◆ SetMainCamera()

void UltimateRadialMenuInputManager.SetMainCamera ( Camera  newMainCamera)
inline

Sets the camera to the provided camera parameter for calculations.

Parameters
newMainCameraThe new camera to use for calculations.

◆ TouchInput()

virtual void UltimateRadialMenuInputManager.TouchInput ( ref bool  enableMenu,
ref bool  disableMenu,
ref Vector2  input,
ref float  distance,
ref bool  inputDown,
ref bool  inputUp,
int  radialMenuIndex 
)
inlinevirtual

This function will catch touch input and modify the information to send back to the Update function.

Parameters
enableMenuA reference to the enableMenu boolean from the Update function. Any changes to this variable in this function will be reflected in the Update function.
disableMenuA reference to the disableMenu boolean from the Update function. Any changes to this variable in this function will be reflected in the Update function.
inputA reference to the input Vector2 from the Update function. Any changes to this variable in this function will be reflected in the Update function.
distanceA reference to the distance float from the Update function. Any changes to this variable in this function will be reflected in the Update function.
inputDownA reference to the inputDown boolean from the Update function. Any changes to this variable in this function will be reflected in the Update function.
inputUpA reference to the inputUp boolean from the Update function. Any changes to this variable in this function will be reflected in the Update function.
radialMenuIndexThe current index of the selected radial button.

◆ VirtualRealityInput()

virtual void UltimateRadialMenuInputManager.VirtualRealityInput ( ref bool  enableMenu,
ref bool  disableMenu,
ref Vector2  input,
ref float  distance,
ref bool  inputDown,
ref bool  inputUp,
int  radialMenuIndex 
)
inlinevirtual

This function will catch input from the center of the screen and VR device and modify the information to send back to the Update function.

Parameters
enableMenuA reference to the enableMenu boolean from the Update function. Any changes to this variable in this function will be reflected in the Update function.
disableMenuA reference to the disableMenu boolean from the Update function. Any changes to this variable in this function will be reflected in the Update function.
inputA reference to the input Vector2 from the Update function. Any changes to this variable in this function will be reflected in the Update function.
distanceA reference to the distance float from the Update function. Any changes to this variable in this function will be reflected in the Update function.
inputDownA reference to the inputDown boolean from the Update function. Any changes to this variable in this function will be reflected in the Update function.
inputUpA reference to the inputUp boolean from the Update function. Any changes to this variable in this function will be reflected in the Update function.
radialMenuIndexThe current index of the selected radial button.

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