Public Member Functions | Public Attributes

a5::Mouse::State Class Reference
[EventMouse]

Mouse state. More...

#include <Mouse.hpp>

List of all members.

Public Member Functions

 State (const ALLEGRO_MOUSE_STATE &state)
 Creates a Mouse State from an Allegro mouse state.
 operator ALLEGRO_MOUSE_STATE () const
 Returns the Allegro mouse state.

Public Attributes

int w
 Position of the horizontal scroll.
int x
 X coordinate of the mouse cursor.
int y
 Y coordinate of the mouse cursor.
int z
 Position of the vertical scroll.
int buttons
 Bitmask of buttons held down.

Detailed Description

Mouse state.


Constructor & Destructor Documentation

a5::Mouse::State::State ( const ALLEGRO_MOUSE_STATE &  state  ) 

Creates a Mouse State from an Allegro mouse state.


Member Function Documentation

a5::Mouse::State::operator ALLEGRO_MOUSE_STATE (  )  const

Returns the Allegro mouse state.


Member Data Documentation

Position of the horizontal scroll.

X coordinate of the mouse cursor.

Y coordinate of the mouse cursor.

Position of the vertical scroll.

Bitmask of buttons held down.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines