summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99/joyport/handset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99/joyport/handset.h')
-rw-r--r--src/devices/bus/ti99/joyport/handset.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/devices/bus/ti99/joyport/handset.h b/src/devices/bus/ti99/joyport/handset.h
index a1726cd8d80..344f74bed7a 100644
--- a/src/devices/bus/ti99/joyport/handset.h
+++ b/src/devices/bus/ti99/joyport/handset.h
@@ -38,7 +38,7 @@ protected:
virtual void device_reset() override;
virtual ioport_constructor device_input_ports() const override;
- virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
+ TIMER_CALLBACK_MEMBER(delayed_data_ack);
private:
static constexpr unsigned MAX_HANDSETS = 4;
@@ -49,6 +49,10 @@ private:
bool poll_joystick(int num);
void set_acknowledge(int data);
+ required_ioport_array<4> m_joyx;
+ required_ioport_array<4> m_joyy;
+ required_ioport_array<5> m_keys;
+
int m_ack;
bool m_clock_high;
int m_buf;
@@ -78,6 +82,8 @@ private:
// In reality this is no latch but GND is put on one of the selector lines
// and then routed back to the port via the joystick
int m_joystick;
+
+ required_ioport_array<2> m_joys;
};
} // end namespace bus::ti99::joyport