diff options
Diffstat (limited to 'src/devices/bus/sms_ctrl/lphaser.h')
-rw-r--r-- | src/devices/bus/sms_ctrl/lphaser.h | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/src/devices/bus/sms_ctrl/lphaser.h b/src/devices/bus/sms_ctrl/lphaser.h index 123241e2663..c9d3a2b6eb5 100644 --- a/src/devices/bus/sms_ctrl/lphaser.h +++ b/src/devices/bus/sms_ctrl/lphaser.h @@ -5,63 +5,14 @@ Sega Master System "Light Phaser" (light gun) emulation **********************************************************************/ - #ifndef MAME_BUS_SMS_CTRL_LPHASER_H #define MAME_BUS_SMS_CTRL_LPHASER_H #pragma once - #include "smsctrl.h" - -//************************************************************************** -// TYPE DEFINITIONS -//************************************************************************** - -// ======================> sms_light_phaser_device - -class sms_light_phaser_device : public device_t, - public device_sms_control_port_interface -{ -public: - // construction/destruction - sms_light_phaser_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - - // optional information overrides - virtual ioport_constructor device_input_ports() const override; - - DECLARE_READ_LINE_MEMBER( th_pin_r ); - DECLARE_INPUT_CHANGED_MEMBER( position_changed ); - -protected: - // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - - // device_sms_control_port_interface overrides - virtual uint8_t peripheral_r() override; - -private: - required_ioport m_lphaser_pins; - required_ioport m_lphaser_x; - required_ioport m_lphaser_y; - - int m_sensor_last_state; - emu_timer *m_lphaser_timer; - static const device_timer_id TIMER_LPHASER = 0; - - void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; - void sensor_check(); - int bright_aim_area( emu_timer *timer, int lgun_x, int lgun_y ); - uint16_t screen_hpos_nonscaled(int scaled_hpos); - uint16_t screen_vpos_nonscaled(int scaled_vpos); -}; - - -// device type definition -DECLARE_DEVICE_TYPE(SMS_LIGHT_PHASER, sms_light_phaser_device) - +DECLARE_DEVICE_TYPE(SMS_LIGHT_PHASER, device_sms_control_interface) #endif // MAME_BUS_SMS_CTRL_LPHASER_H |