00001 /* 00002 $Id: inputhat.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_inputhat 00018 #define header_inputhat 00019 00020 class CL_InputHat 00021 //: Joystick hat interface. 00022 // CL_InputHat is the interface to the "hat" on a joystick. 00023 { 00024 public: 00025 virtual ~CL_InputHat() { return; } 00026 virtual float get_direction()=0; 00027 //: Returns the current direction of the hat (in degrees from 0-360). If the 00028 //: value returned is -1, the hat is centered. 00030 }; 00031 00032 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001