Fork me on GitHub

MouseState Class

Summary

Represents the state of the mouse All members are valid for both buffered and non buffered mode
Namespace
SharpInputSystem
Base Types
  • object
graph BT Type-->Base0["object"] Type["MouseState"] class Type type-node

Syntax

public class MouseState

Constructors

Name Summary
MouseState()

Properties

Name Value Summary
Buttons int
represents all buttons - bit position indicates button down
Height int
Represents the height of your display area.. used if mouse clipping or mouse grabbed in case of X11 - defaults to 50.. Make sure to set this and change when your size changes.. */
Width int
Represents the width of your display area.. used if mouse clipping or mouse grabbed in case of X11 - defaults to 50.. Make sure to set this and change when your size changes.. */
X Axis
X Axis Component
Y Axis
Y Axis Component
Z Axis
Z Axis Component

Methods

Name Value Summary
Clear() void
Clear all the values
IsButtonDown(MouseButtonID) bool
Button down test