text: #ifndef JOYSTICK_H_
  #define JOYSTICK_H_
  
  #include "cocos2d.h"
  using namespace cocos2d;
  
  class JoystickEvent: public Ref {
  private:
  	JoystickEvent();
  
  public:
  	virtual ~JoystickEvent();
  	virtual bool init();CREATE_FUNC(JoystickEvent)
  	;
  
  public:
  	static const std::string EVENT_JOYSTICK;
  	double mAnagle;
  //	double mX;
  //	double mY;
  };
  
  class Joystick: public Layer {
  private:
  	Joystick();
  
  protected:
  	bool onTouchBegan(Touch *touch, Event *unused_event);
  	void onTouchMoved(Touch *touch, Event *unused_event);
  	void onTouchEnded(Touch *touch, Event *unused_event);
  
  public:
  	virtual ~Joystick();
  	virtual bool init();CREATE_FUNC(Joystick)
  	;
  
  private:
  	Sprite* mJsBg;
  	Sprite* mJsCenter;
  	Vec2 mJsPos;
  };
  
  #endif /* JOYSTICK_H_ */
  