AgateLib.InputLib.Mouse Class Reference

Class which encapsulates input from the mouse. More...

List of all members.

Classes

class  MouseState
 Class which encapsulates the state of the mouse. More...

Public Types

enum  MouseButtons {
  None, Primary, Secondary, Middle,
  ExtraButton1, ExtraButton2, ExtraButton3
}
 Mouse Buttons enum. More...

Static Public Member Functions

static void Show ()
 Shows the OS cursor.
static void Hide ()
 Hides the OS cursor.
static void OnMouseMove ()
 Raises the MouseMove event.
static void OnMouseDoubleClick (MouseButtons btn)
 Raises the MouseDoubleClick event.

Properties

static Point Position [get, set]
 Gets or sets the position of the cursor, in client coordinates of the current display window.
static int X [get, set]
 Gets or sets the X position of the cursor, in client coordinates of the current display window.
static int Y [get, set]
 Gets or sets the Y position of the cursor, in client coordinates of the current display window.
static MouseState Buttons [get]
 Gets the MouseState structure which indicates which buttons are pressed.

Events

static InputEventHandler MouseMove
 Event which occurs when the mouse is moved.
static InputEventHandler MouseDown
 Event which occurs when a mouse button is pressed.
static InputEventHandler MouseUp
 Event which occurs when a mouse button is released.
static InputEventHandler MouseDoubleClickEvent
 Event which occurs when a mouse button is double-clicked.
static InputEventHandler MouseDoubleClick
 Event which occurs when a mouse button is double-clicked.


Detailed Description

Class which encapsulates input from the mouse.


Member Enumeration Documentation

Mouse Buttons enum.

Enumerator:
None  No mouse button.

Primary  Primary button, typically the left button.

Secondary  Secondary button, typically the right button.

Middle  Middle button on some mice.

ExtraButton1  First Extra Button.

ExtraButton2  Second Extra Button.

ExtraButton3  Third Extra Button.


Member Function Documentation

static void AgateLib.InputLib.Mouse.Hide (  )  [static]

Hides the OS cursor.

static void AgateLib.InputLib.Mouse.OnMouseDoubleClick ( MouseButtons  btn  )  [static]

Raises the MouseDoubleClick event.

Parameters:
btn 

static void AgateLib.InputLib.Mouse.OnMouseMove (  )  [static]

Raises the MouseMove event.

static void AgateLib.InputLib.Mouse.Show (  )  [static]

Shows the OS cursor.


Property Documentation

MouseState AgateLib.InputLib.Mouse.Buttons [static, get]

Gets the MouseState structure which indicates which buttons are pressed.

Point AgateLib.InputLib.Mouse.Position [static, get, set]

Gets or sets the position of the cursor, in client coordinates of the current display window.

int AgateLib.InputLib.Mouse.X [static, get, set]

Gets or sets the X position of the cursor, in client coordinates of the current display window.

int AgateLib.InputLib.Mouse.Y [static, get, set]

Gets or sets the Y position of the cursor, in client coordinates of the current display window.


Event Documentation

InputEventHandler AgateLib.InputLib.Mouse.MouseDoubleClick [static]

Event which occurs when a mouse button is double-clicked.

InputEventHandler AgateLib.InputLib.Mouse.MouseDoubleClickEvent [static]

Event which occurs when a mouse button is double-clicked.

InputEventHandler AgateLib.InputLib.Mouse.MouseDown [static]

Event which occurs when a mouse button is pressed.

InputEventHandler AgateLib.InputLib.Mouse.MouseMove [static]

Event which occurs when the mouse is moved.

InputEventHandler AgateLib.InputLib.Mouse.MouseUp [static]

Event which occurs when a mouse button is released.


The documentation for this class was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo