Table of Contents

Class Mouse

Namespace
PAC.Input
public class Mouse : MonoBehaviour
Inheritance
Mouse

Fields

canInteract

public bool canInteract

Field Value

bool

lockAllUIInteractions

public bool lockAllUIInteractions

Field Value

bool

Properties

click

public bool click { get; }

Property Value

bool

cursorState

public CursorState cursorState { get; }

Property Value

CursorState

hasHoverTrigger

public bool hasHoverTrigger { get; }

Property Value

bool

held

public bool held { get; }

Property Value

bool

hoverTarget

public InputTarget hoverTarget { get; }

Property Value

InputTarget

leftClick

public bool leftClick { get; }

Property Value

bool

leftHold

public bool leftHold { get; }

Property Value

bool

leftUnclick

public bool leftUnclick { get; }

Property Value

bool

middleClick

public bool middleClick { get; }

Property Value

bool

middleHold

public bool middleHold { get; }

Property Value

bool

middleUnclick

public bool middleUnclick { get; }

Property Value

bool

nothingClick

public bool nothingClick { get; }

Property Value

bool

nothingHeld

public bool nothingHeld { get; }

Property Value

bool

numButtonsHeld

public int numButtonsHeld { get; }

Property Value

int

rightClick

public bool rightClick { get; }

Property Value

bool

rightHold

public bool rightHold { get; }

Property Value

bool

rightUnclick

public bool rightUnclick { get; }

Property Value

bool

scrollCursorDisplayTime

public float scrollCursorDisplayTime { get; }

Property Value

float

scrollDelta

public float scrollDelta { get; }

Property Value

float

unclick

public bool unclick { get; }

Property Value

bool

worldPos

public Vector2 worldPos { get; }

Property Value

Vector2

Methods

IsClicked(MouseButton)

public bool IsClicked(MouseButton mouseButton)

Parameters

mouseButton MouseButton

Returns

bool

IsHeld(MouseButton)

public bool IsHeld(MouseButton mouseButton)

Parameters

mouseButton MouseButton

Returns

bool

IsUnclicked(MouseButton)

public bool IsUnclicked(MouseButton mouseButton)

Parameters

mouseButton MouseButton

Returns

bool

SetCursorSprite(CursorState)

public void SetCursorSprite(CursorState cursorState)

Parameters

cursorState CursorState

SetCursorState(CursorState)

public void SetCursorState(CursorState cursorState)

Parameters

cursorState CursorState

SubscribeToClick(UnityAction)

public void SubscribeToClick(UnityAction call)

Parameters

call UnityAction

SubscribeToLeftClick(UnityAction)

public void SubscribeToLeftClick(UnityAction call)

Parameters

call UnityAction

SubscribeToLeftUnclick(UnityAction)

public void SubscribeToLeftUnclick(UnityAction call)

Parameters

call UnityAction

SubscribeToMiddleClick(UnityAction)

public void SubscribeToMiddleClick(UnityAction call)

Parameters

call UnityAction

SubscribeToMiddleUnclick(UnityAction)

public void SubscribeToMiddleUnclick(UnityAction call)

Parameters

call UnityAction

SubscribeToRightClick(UnityAction)

public void SubscribeToRightClick(UnityAction call)

Parameters

call UnityAction

SubscribeToRightUnclick(UnityAction)

public void SubscribeToRightUnclick(UnityAction call)

Parameters

call UnityAction

SubscribeToScroll(UnityAction)

public void SubscribeToScroll(UnityAction call)

Parameters

call UnityAction

SubscribeToUnclick(UnityAction)

public void SubscribeToUnclick(UnityAction call)

Parameters

call UnityAction