summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/amiga.h
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2014-05-31 12:02:17 +0000
committer Dirk Best <mail@dirk-best.de>2014-05-31 12:02:17 +0000
commit7bb753564ebbe7bd22c974960bbc035687a0a485 (patch)
treefc36add47f843a6891c848ee892b2c80b25ef35b /src/mame/includes/amiga.h
parent8235822f619acb2534c68fc816c47a03b8685730 (diff)
Amiga: Add very basic POT counter emulation, enough for Space Ranger to
detect the second button.
Diffstat (limited to 'src/mame/includes/amiga.h')
-rw-r--r--src/mame/includes/amiga.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mame/includes/amiga.h b/src/mame/includes/amiga.h
index 664078ed5e8..6d65683e050 100644
--- a/src/mame/includes/amiga.h
+++ b/src/mame/includes/amiga.h
@@ -357,6 +357,9 @@ public:
m_chip_ram_mirror(0),
m_cia_0_irq(0),
m_cia_1_irq(0),
+ m_pot0x(0), m_pot1x(0), m_pot0y(0), m_pot1y(0),
+ m_pot0dat(0x0000),
+ m_pot1dat(0x0000),
m_centronics_busy(0),
m_centronics_perror(0),
m_centronics_select(0),
@@ -613,6 +616,12 @@ private:
SERPER_LONG = 0x8000 // 9-bit mode
};
+ // pot counters
+ int m_pot0x, m_pot1x, m_pot0y, m_pot1y;
+
+ UINT16 m_pot0dat;
+ UINT16 m_pot1dat;
+
int m_centronics_busy;
int m_centronics_perror;
int m_centronics_select;