• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

Struct MouseState

Information about the mouse state

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Inferno.Input
Assembly: Inferno.Desktop.dll
Syntax
public struct MouseState

Constructors

| Improve this Doc View Source

MouseState(Int32, Int32, Int32, ButtonState, ButtonState, ButtonState, ButtonState, ButtonState)

Declaration
public MouseState(int x, int y, int scrollwheel, ButtonState left, ButtonState middle, ButtonState right, ButtonState x1, ButtonState x2)
Parameters
Type Name Description
System.Int32 x
System.Int32 y
System.Int32 scrollwheel
ButtonState left
ButtonState middle
ButtonState right
ButtonState x1
ButtonState x2

Fields

| Improve this Doc View Source

LeftButton

Left click state

Declaration
public ButtonState LeftButton
Field Value
Type Description
ButtonState
| Improve this Doc View Source

MiddleButton

Middle click state

Declaration
public ButtonState MiddleButton
Field Value
Type Description
ButtonState
| Improve this Doc View Source

RightButton

Right click state

Declaration
public ButtonState RightButton
Field Value
Type Description
ButtonState
| Improve this Doc View Source

ScrollWheelValue

The value of the scroll wheel

Declaration
public int ScrollWheelValue
Field Value
Type Description
System.Int32
| Improve this Doc View Source

X

X coordinate of the mouse on screen

Declaration
public int X
Field Value
Type Description
System.Int32
| Improve this Doc View Source

XButton1

Extra button 1 state

Declaration
public ButtonState XButton1
Field Value
Type Description
ButtonState
| Improve this Doc View Source

XButton2

Extra button 2 state

Declaration
public ButtonState XButton2
Field Value
Type Description
ButtonState
| Improve this Doc View Source

Y

Y coordinate of the mouse on screen

Declaration
public int Y
Field Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
Back to top Generated by DocFX