From: Daniel R. <dtr...@us...> - 2005-01-30 00:27:08
|
Update of /cvsroot/bzflag/bzflag/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20035/include Modified Files: BzfJoystick.h Log Message: Allow user to select what physical joystick axes to use for driving about. Index: BzfJoystick.h =================================================================== RCS file: /cvsroot/bzflag/bzflag/include/BzfJoystick.h,v retrieving revision 2.1 retrieving revision 2.2 diff -w -u -r2.1 -r2.2 --- BzfJoystick.h 17 Jan 2005 23:41:41 -0000 2.1 +++ BzfJoystick.h 30 Jan 2005 00:26:59 -0000 2.2 @@ -36,6 +36,13 @@ virtual unsigned long getJoyButtons(); virtual void getJoyDevices(std::vector<std::string> &list) const; + /** Return a list of axes belonging to the joystick. The first and second + ** are assumed to be default X and Y axes, respectively. + **/ + virtual void getJoyDeviceAxes(std::vector<std::string> &list) const; + virtual void setXAxis(const std::string axis); + virtual void setYAxis(const std::string axis); + /* Force feedback support. Currently we only support 'rumble' force * feedback- a motor in the controller vibrates it, as tactile feedback * for explosions, collisions, engines starting, death, that sort of thing. |