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 |