Input System  v0.1
ISX.Mouse Class Reference

A mouse input device. More...

Inheritance diagram for ISX.Mouse:
ISX.Pointer ISX.InputDevice ISX.InputControl

Properties

Vector2Control scroll [get]
 The horizontal and vertical scroll wheels. More...
 
ButtonControl leftButton [get]
 The left mouse button. More...
 
ButtonControl middleButton [get]
 The middle mouse button. More...
 
ButtonControl rightButton [get]
 The right mouse button. More...
 
static new Mouse current [get, set]
 The mouse that was added or updated last or null if there is no mouse connected to the system. More...
 
- Properties inherited from ISX.Pointer
Vector2Control position [get]
 The current pointer coordinates in window space. More...
 
static Pointer current [get, set]
 The pointer that was added or updated last or null if there is no pointer connected to the system. More...
 
- Properties inherited from ISX.InputDevice
bool remote [get]
 Whether the device is mirrored from a remote input system and not actually present as a "real" device in the local system. More...
 
bool native [get]
 Whether the device comes from the native Unity runtime. More...
 
double lastUpdateTime [get]
 Timestamp of last state event used to update the device. More...
 

Additional Inherited Members

- Public Member Functions inherited from ISX.InputDevice
virtual void OnConfigurationChanged ()
 Called by the system when the configuration of the device has changed. More...
 

Detailed Description

A mouse input device.

Adds a scroll wheel and a typical 3-button setup with a left, middle, and right button.

To control cursor display and behavior, use UnityEngine.Cursor.

Property Documentation

◆ current

new Mouse ISX.Mouse.current
staticgetset

The mouse that was added or updated last or null if there is no mouse connected to the system.

◆ leftButton

ButtonControl ISX.Mouse.leftButton
get

The left mouse button.

◆ middleButton

ButtonControl ISX.Mouse.middleButton
get

The middle mouse button.

◆ rightButton

ButtonControl ISX.Mouse.rightButton
get

The right mouse button.

◆ scroll

Vector2Control ISX.Mouse.scroll
get

The horizontal and vertical scroll wheels.