// $Id: JoystickPort.hh 4836 2005-11-11 20:53:06Z m9710797 $ #ifndef JOYSTICKPORT_HH #define JOYSTICKPORT_HH #include "Connector.hh" #include "JoystickDevice.hh" #include "openmsx.hh" namespace openmsx { class PluggingController; class JoystickPort : public Connector { public: JoystickPort(PluggingController& pluggingController, const std::string& name); virtual ~JoystickPort(); // Connector virtual const std::string& getDescription() const; virtual const std::string& getClass() const; virtual void plug(Pluggable& device, const EmuTime& time); virtual JoystickDevice& getPlugged() const; byte read(const EmuTime& time); void write(byte value, const EmuTime& time); private: PluggingController& pluggingController; byte lastValue; }; } // namespace openmsx #endif