Skip to main content

Class MousePartyInputModule

Input module for working with multiple mice

Assembly: ChocDino.PartyIO.dll​
Declaration
[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​

Declaration
public bool _enableMouseParty

Methods​

UpdateModule()​

Update the internal state of the Module.

Declaration
public override void UpdateModule()

ShouldActivateModule()​

Should the module be activated.

Declaration
public override bool ShouldActivateModule()
Returns​

System.Boolean

ActivateModule()​

See BaseInputModule.

Declaration
public override void ActivateModule()

Process()​

Process the current tick for the module.

Declaration
public override void Process()

ProcessMouseEvent()​

Declaration
protected void ProcessMouseEvent()

ProcessMouseEvent(BaseMouseCursor)​

Process all mouse events.

Declaration
protected void ProcessMouseEvent(BaseMouseCursor cursor)
Parameters​
TypeName
ChocDino.PartyIO.BaseMouseCursorcursor

GetMousePointerEventData(BaseMouseCursor)​

Return the current MouseState.

Declaration
protected PointerInputModule.MouseState GetMousePointerEventData(BaseMouseCursor cursor)
Returns​

UnityEngine.EventSystems.PointerInputModule.MouseState

Parameters​
TypeName
ChocDino.PartyIO.BaseMouseCursorcursor

StateForMouseButton(MouseDevice, MouseButton)​

Declaration
protected PointerEventData.FramePressState StateForMouseButton(MouseDevice mouse, MouseButton buttonId)
Returns​

UnityEngine.EventSystems.PointerEventData.FramePressState

Parameters​
TypeName
ChocDino.PartyIO.MouseDevicemouse
ChocDino.PartyIO.MouseButtonbuttonId

ProcessMove(PointerEventData)​

Process movement for the current frame with the given pointer event.

Declaration
protected override void ProcessMove(PointerEventData pointerEvent)
Parameters​
TypeName
UnityEngine.EventSystems.PointerEventDatapointerEvent

ProcessDrag(PointerEventData)​

Process the drag for the current frame with the given pointer event.

Declaration
protected override void ProcessDrag(PointerEventData pointerEvent)
Parameters​
TypeName
UnityEngine.EventSystems.PointerEventDatapointerEvent