text: #ifndef _FUSIN_DPAD_COMPONENT_H
  #define _FUSIN_DPAD_COMPONENT_H
  
  #include "FusinDeviceComponent.h"
  #include <list>
  #include <map>
  #include <vector>
  
  namespace Fusin
  {
  	/*
  	Component for devices with directional buttons or
  	other methods of representing a direction.
  	*/
  	class _FUSIN_EXPORT DPadComponent : public DeviceComponent
  	{
  	public:
  		DPadComponent(DeviceType signalType);
  		~DPadComponent();
  
  		DeviceType deviceType() const;
  		IOFlags flags() const;
  
  		String getStateString();
  
  		IOSignal angle;
  		IOSignal up, down, left, right;
  
  		void _update(size_t msElapsed = 0);
  
  	protected:
  		std::vector<IOSignal*> mDPadDirections;
  		std::vector<IOSignal*> mDPadAngles;
  	};
  
  }
  
  #endif