Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/Joystick.h @ 140:67a5469dfef2 draft
add Controller
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 28 Nov 2008 15:24:55 +0900 |
parents | |
children | 0b0e0f323742 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/Test/test_render/Joystick.h Fri Nov 28 15:24:55 2008 +0900 @@ -0,0 +1,19 @@ +#ifndef INCLUDED_JOYSTICK +#define INCLUDED_JOYSTICK + +#ifndef INCLUDED_PAD +# include "Pad.h" +#endif + +class Joystick : public Pad { +public: + SDL_Joystick *joy; + Sint16 axis; + + Joystick(SDL_Joystick *j); + + void check(void); + void close(void); +}; + +#endif