diff options
author | 2014-08-24 08:42:23 +0000 | |
---|---|---|
committer | 2014-08-24 08:42:23 +0000 | |
commit | 9ffe9e8bbaf66fbfe851a2b0abc29aa21c493ac3 (patch) | |
tree | a4b8dd63ee374766f5535b833a751a994e3cba5c /src/emu/bus/vcs_ctrl/joybooster.h | |
parent | a1c421704f5d90ecd90692e2ab9e241ab0ea2b0d (diff) |
I had to split this commit in two pieces because "svn move" does not like when you move a folder
and then you add a new folder with the original name of the one you moved. the tree will compile
again with next commit. nw.
Diffstat (limited to 'src/emu/bus/vcs_ctrl/joybooster.h')
-rw-r--r-- | src/emu/bus/vcs_ctrl/joybooster.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/emu/bus/vcs_ctrl/joybooster.h b/src/emu/bus/vcs_ctrl/joybooster.h new file mode 100644 index 00000000000..8f4c3bf9ca2 --- /dev/null +++ b/src/emu/bus/vcs_ctrl/joybooster.h @@ -0,0 +1,60 @@ +/********************************************************************** + + Atari Video Computer System digital joystick emulation with + boostergrip adapter + + Copyright MESS Team. + Visit http://mamedev.org for licensing and usage restrictions. + +**********************************************************************/ + +#pragma once + +#ifndef __VCS_JOYSTICKBOOSTER__ +#define __VCS_JOYSTICKBOOSTER__ + +#include "emu.h" +#include "ctrl.h" + + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> vcs_joystick_booster_device + +class vcs_joystick_booster_device : public device_t, + public device_vcs_control_port_interface +{ +public: + // construction/destruction + vcs_joystick_booster_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + // optional information overrides + virtual ioport_constructor device_input_ports() const; + +protected: + // device-level overrides + virtual void device_start(); + + // device_vcs_control_port_interface overrides + virtual UINT8 vcs_joy_r(); + virtual UINT8 vcs_pot_x_r(); + virtual UINT8 vcs_pot_y_r(); + + virtual bool has_pot_x() { return true; } + virtual bool has_pot_y() { return true; } + +private: + required_ioport m_joy; + required_ioport m_potx; + required_ioport m_poty; +}; + + +// device type definition +extern const device_type VCS_JOYSTICK_BOOSTER; + + +#endif |