NAME
CL_Mouse - Mouse interface in ClanLib.
DESCRIPTION
CL_Mouse extends the CL_InputDevice with functionality only useful to mice.
Inherited from public CL_InputDevice
CLASS MEMBERS
- virtual ~CL_Mouse()
- static int get_x()
- static int get_y()
- static bool left_pressed()
- static bool middle_pressed()
- static bool right_pressed()
MEMBERS WITH DESCRIPTIONS
- virtual ~CL_Mouse()
-
Description:
- static int get_x()
-
Description:
Return value:
Returns the x position of the mouse in range from [ 0 - CL_Display::get_height() [.
- static int get_y()
-
Description:
Return value:
Returns the y position of the mouse in range from [ 0 - CL_Display::get_height() [.
- static bool left_pressed()
-
Description:
Return value:
Returns true if the left mouse button is pressed, else false is returned.
- static bool middle_pressed()
-
Description:
Return value:
Returns true if the middle mouse button is pressed, else false is returned.
- static bool right_pressed()
-
Description:
Return value:
Returns true if the right mouse button is pressed, else false is returned.
SEE ALSO
- CL_Settings
-
The class holding ClanLib state information like width/height of the currentdisplay
All ClanLib API classes can be found in clanlib (3).
AUTHORS
Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.
The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).
See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.