diff options
Diffstat (limited to 'src/devices/bus/neogeo_ctrl/joystick.h')
-rw-r--r-- | src/devices/bus/neogeo_ctrl/joystick.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/devices/bus/neogeo_ctrl/joystick.h b/src/devices/bus/neogeo_ctrl/joystick.h index a78734ab695..9be443077d9 100644 --- a/src/devices/bus/neogeo_ctrl/joystick.h +++ b/src/devices/bus/neogeo_ctrl/joystick.h @@ -6,10 +6,10 @@ **********************************************************************/ -#pragma once +#ifndef MAME_BUS_NEOGEO_CTRL_JOYSTICK_H +#define MAME_BUS_NEOGEO_CTRL_JOYSTICK_H -#ifndef __NEOGEO_JOYSTICK__ -#define __NEOGEO_JOYSTICK__ +#pragma once #include "ctrl.h" @@ -20,8 +20,7 @@ // ======================> neogeo_joystick_device -class neogeo_joystick_device : public device_t, - public device_neogeo_control_port_interface +class neogeo_joystick_device : public device_t, public device_neogeo_control_port_interface { public: // construction/destruction @@ -47,8 +46,7 @@ private: // ======================> neogeo_joy_ac_device -class neogeo_joy_ac_device : public device_t, - public device_neogeo_ctrl_edge_interface +class neogeo_joy_ac_device : public device_t, public device_neogeo_ctrl_edge_interface { public: // construction/destruction @@ -73,8 +71,8 @@ private: // device type definition -extern const device_type NEOGEO_JOY; -extern const device_type NEOGEO_JOY_AC; +DECLARE_DEVICE_TYPE(NEOGEO_JOY, neogeo_joystick_device) +DECLARE_DEVICE_TYPE(NEOGEO_JOY_AC, neogeo_joy_ac_device) -#endif +#endif // MAME_BUS_NEOGEO_CTRL_JOYSTICK_H |