00001 /* 00002 $Id: keyboard.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_keyboard 00018 #define header_keyboard 00019 00020 #include "inputdevice.h" 00021 00022 class CL_Keyboard : public CL_InputDevice 00023 //: Keyboard interface in ClanLib. 00024 // This is the keyboard input device interface. It contains all the extra 00025 // functions needed by the keyboard, which didn't fit into the general 00026 // CL_InputDevice abstraction. 00027 { 00028 public: 00029 virtual ~CL_Keyboard() { return; } 00030 00031 static bool get_keycode(int button_no); 00032 //: Returns true if the specified button is down on the keyboard. 00033 //: <br> 00034 //: This static function is an easier way of writing 00035 //: CL_Input::keyboards[0]->get_button->is_pressed(); 00038 }; 00039 00040 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001