00001 /* 00002 $Id: mouse.h,v 1.1 2001/03/06 15:09:11 mbn Exp $ 00003 00004 ------------------------------------------------------------------------ 00005 ClanLib, the platform independent game SDK. 00006 00007 This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE 00008 version 2. See COPYING for details. 00009 00010 For a total list of contributers see CREDITS. 00011 00012 ------------------------------------------------------------------------ 00013 */ 00014 00016 00017 #ifndef header_mouse 00018 #define header_mouse 00019 00020 #include "inputdevice.h" 00021 00022 class CL_Mouse : public CL_InputDevice 00023 //: Mouse interface in ClanLib. 00024 // CL_Mouse extends the CL_InputDevice with functionality only useful 00025 // to mice. 00026 { 00027 public: 00028 virtual ~CL_Mouse() { return; } 00029 00030 static int get_x(); 00033 00034 static int get_y(); 00037 00038 static bool left_pressed(); 00041 00042 static bool middle_pressed(); 00045 00046 static bool right_pressed(); 00049 }; 00050 00051 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001