00001 /* 00002 $Id: inputaxis.h,v 1.1 2001/03/06 15:09:10 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_inputaxis 00018 #define header_inputaxis 00019 00020 class CL_InputAxis 00021 //: Input Axis interface. 00022 // CL_InputAxis is the interface to an input axis, such as a joystick axis. 00023 { 00024 public: 00025 virtual ~CL_InputAxis() { return; } 00026 virtual float get_pos()=0; 00027 //: Returns a value between -1 and 1. Zero means centered, and -1 and 1 00028 //: means all-the-way to either side (up/down, left/right, whatever). 00030 }; 00031 00032 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001