Open Asterune
PlayerMouse

PlayerMouse

Provides the mouse input interface returned for a local player.

Not creatable
Created by the engine or used as a base class.
Inherits
MouseInstance
Replication
Standard

Behavior

PlayerMouse provides the mouse input interface returned for a local player.

Summary

Members21
Properties11
Events10
  • Button1Down: RBXScriptSignalparallel readread only

    Fires when the primary mouse button is pressed.

  • Button1Up: RBXScriptSignalparallel readread only

    Fires when the primary mouse button is released.

  • Button2Down: RBXScriptSignalparallel readread only

    Fires when the secondary mouse button is pressed.

  • Button2Up: RBXScriptSignalparallel readread only

    Fires when the secondary mouse button is released.

  • Idle: RBXScriptSignalparallel readread only

    Fires while the pointer is idle.

  • KeyDown: RBXScriptSignalparallel readread only

    Fires when a keyboard key is pressed through the mouse interface.

  • KeyUp: RBXScriptSignalparallel readread only

    Fires when a keyboard key is released through the mouse interface.

  • Move: RBXScriptSignalparallel readread only

    Fires when the pointer moves.

  • WheelBackward: RBXScriptSignalparallel readread only

    Fires when the mouse wheel scrolls backward.

  • WheelForward: RBXScriptSignalparallel readread only

    Fires when the mouse wheel scrolls forward.

Properties

Hit

PlayerMouse.Hit: CFrame

The world-space transform at the pointer's intersection with scene geometry.

Icon

PlayerMouse.Icon: string

The content identifier of the pointer icon.

Origin

PlayerMouse.Origin: CFrame

The world-space origin transform of the pointer ray.

Target

PlayerMouse.Target: BasePart?

The BasePart under the pointer, or nil when no Part is hit.

TargetFilter

PlayerMouse.TargetFilter: Instance?

The Instance hierarchy ignored when finding the pointer target.

TargetSurface

PlayerMouse.TargetSurface: EnumItem

The face of the Part hit by the pointer ray.

UnitRay

PlayerMouse.UnitRay: Ray

The world-space unit ray through the pointer position.

ViewSizeX

PlayerMouse.ViewSizeX: number

The viewport width in pixels.

ViewSizeY

PlayerMouse.ViewSizeY: number

The viewport height in pixels.

X

PlayerMouse.X: number

The pointer X coordinate in pixels.

Y

PlayerMouse.Y: number

The pointer Y coordinate in pixels.

Events

Button1Down

PlayerMouse.Button1Down: RBXScriptSignal

Fires when the primary mouse button is pressed.

Button1Up

PlayerMouse.Button1Up: RBXScriptSignal

Fires when the primary mouse button is released.

Button2Down

PlayerMouse.Button2Down: RBXScriptSignal

Fires when the secondary mouse button is pressed.

Button2Up

PlayerMouse.Button2Up: RBXScriptSignal

Fires when the secondary mouse button is released.

Idle

PlayerMouse.Idle: RBXScriptSignal

Fires while the pointer is idle.

KeyDown

PlayerMouse.KeyDown: RBXScriptSignal

Fires when a keyboard key is pressed through the mouse interface.

KeyUp

PlayerMouse.KeyUp: RBXScriptSignal

Fires when a keyboard key is released through the mouse interface.

Move

PlayerMouse.Move: RBXScriptSignal

Fires when the pointer moves.

WheelBackward

PlayerMouse.WheelBackward: RBXScriptSignal

Fires when the mouse wheel scrolls backward.

WheelForward

PlayerMouse.WheelForward: RBXScriptSignal

Fires when the mouse wheel scrolls forward.

Inherited members

Inherited48

Mouse