summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes_ctrl/4score.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes_ctrl/4score.h')
-rw-r--r--src/devices/bus/nes_ctrl/4score.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/devices/bus/nes_ctrl/4score.h b/src/devices/bus/nes_ctrl/4score.h
index 2e8fee5cc60..c69249b5511 100644
--- a/src/devices/bus/nes_ctrl/4score.h
+++ b/src/devices/bus/nes_ctrl/4score.h
@@ -6,14 +6,14 @@
**********************************************************************/
-#pragma once
-
-#ifndef __NES_FOURSCORE__
-#define __NES_FOURSCORE__
+#ifndef MAME_BUS_NES_CTRL_4SCORE_H
+#define MAME_BUS_NES_CTRL_4SCORE_H
+#pragma once
#include "ctrl.h"
+
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
@@ -23,18 +23,16 @@
class nes_4score_device : public device_t,
public device_nes_control_port_interface
{
-public:
+protected:
// construction/destruction
- nes_4score_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
+ nes_4score_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
-protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
virtual uint8_t read_bit0() override;
-protected:
uint32_t m_latch;
};
@@ -76,8 +74,8 @@ private:
// device type definition
-extern const device_type NES_4SCORE_P1P3;
-extern const device_type NES_4SCORE_P2P4;
+DECLARE_DEVICE_TYPE(NES_4SCORE_P1P3, nes_4score_p1p3_device)
+DECLARE_DEVICE_TYPE(NES_4SCORE_P2P4, nes_4score_p2p4_device)
-#endif
+#endif // MAME_BUS_NES_CTRL_4SCORE_H