Class MousePartyInputModule
Input module for working with multiple mice
Assembly: ChocDino.PartyIO.dll
[AddComponentMenu("Mouse Party/Mouse Party Input Module")]
public class MousePartyInputModule : StandaloneInputModule
Inheritance: System.Object -> UnityEngine.Object -> UnityEngine.Component -> UnityEngine.Behaviour -> UnityEngine.MonoBehaviour -> UnityEngine.EventSystems.UIBehaviour -> UnityEngine.EventSystems.BaseInputModule -> UnityEngine.EventSystems.PointerInputModule -> UnityEngine.EventSystems.StandaloneInputModule
Fields
_enableMouseParty
public bool _enableMouseParty
Methods
UpdateModule()
Update the internal state of the Module.
public override void UpdateModule()
ShouldActivateModule()
Should the module be activated.
public override bool ShouldActivateModule()
Returns
System.Boolean
ActivateModule()
See BaseInputModule.
public override void ActivateModule()
Process()
Process the current tick for the module.
public override void Process()
ProcessMouseEvent()
protected void ProcessMouseEvent()
ProcessMouseEvent(BaseMouseCursor)
Process all mouse events.
protected void ProcessMouseEvent(BaseMouseCursor cursor)
Parameters
| Type | Name | 
|---|---|
| ChocDino.PartyIO.BaseMouseCursor | cursor | 
GetMousePointerEventData(BaseMouseCursor)
Return the current MouseState.
protected PointerInputModule.MouseState GetMousePointerEventData(BaseMouseCursor cursor)
Returns
UnityEngine.EventSystems.PointerInputModule.MouseState
Parameters
| Type | Name | 
|---|---|
| ChocDino.PartyIO.BaseMouseCursor | cursor | 
StateForMouseButton(MouseDevice, MouseButton)
protected PointerEventData.FramePressState StateForMouseButton(MouseDevice mouse, MouseButton buttonId)
Returns
UnityEngine.EventSystems.PointerEventData.FramePressState
Parameters
| Type | Name | 
|---|---|
| ChocDino.PartyIO.MouseDevice | mouse | 
| ChocDino.PartyIO.MouseButton | buttonId | 
ProcessMove(PointerEventData)
Process movement for the current frame with the given pointer event.
protected override void ProcessMove(PointerEventData pointerEvent)
Parameters
| Type | Name | 
|---|---|
| UnityEngine.EventSystems.PointerEventData | pointerEvent | 
ProcessDrag(PointerEventData)
Process the drag for the current frame with the given pointer event.
protected override void ProcessDrag(PointerEventData pointerEvent)
Parameters
| Type | Name | 
|---|---|
| UnityEngine.EventSystems.PointerEventData | pointerEvent |