Exemplo n.º 1
0
        bool m_lightgun_reload_button;                                                                        // lightgun reload hack


        // construction/destruction
        //-------------------------------------------------
        //  input_device - constructor
        //-------------------------------------------------
        protected input_device(input_manager manager, string name, string id, object internalobj)
        {
            m_manager                = manager;
            m_name                   = name;
            m_id                     = id;
            m_devindex               = -1;
            m_maxitem                = 0;
            m_internal               = internalobj;
            m_steadykey_enabled      = manager.machine().options().steadykey();
            m_lightgun_reload_button = manager.machine().options().offscreen_reload();
        }
Exemplo n.º 2
0
        bool m_multi;                                                                   // are multiple instances of this class allowed?


        // construction/destruction
        //-------------------------------------------------
        //  input_class - constructor
        //-------------------------------------------------
        protected input_class(input_manager manager, input_device_class devclass, string name, bool enabled = false, bool multi = false)
        {
            m_manager  = manager;
            m_devclass = devclass;
            m_name     = name;
            m_maxindex = 0;
            m_enabled  = enabled;
            m_multi    = multi;


            assert(m_name != null);
        }
Exemplo n.º 3
0
 protected input_code_poller(input_manager manager)
 {
     m_manager       = manager;
     m_axis_memory   = new std.vector <std.pair <input_device_item, s32> >();
     m_switch_memory = new std.vector <input_code>();
 }
Exemplo n.º 4
0
 public switch_code_poller(input_manager manager)
     : base(manager)
 {
 }
Exemplo n.º 5
0
 // construction/destruction
 //-------------------------------------------------
 //  input_class_joystick - constructor
 //-------------------------------------------------
 public input_class_joystick(input_manager manager)
     : base(manager, input_device_class.DEVICE_CLASS_JOYSTICK, "joystick", manager.machine().options().joystick(), true)
 {
 }
Exemplo n.º 6
0
 // construction/destruction
 //-------------------------------------------------
 //  input_class_lightgun - constructor
 //-------------------------------------------------
 public input_class_lightgun(input_manager manager)
     : base(manager, input_device_class.DEVICE_CLASS_LIGHTGUN, "lightgun", manager.machine().options().lightgun(), true)
 {
 }
Exemplo n.º 7
0
 // construction/destruction
 //-------------------------------------------------
 //  input_class_mouse - constructor
 //-------------------------------------------------
 public input_class_mouse(input_manager manager)
     : base(manager, input_device_class.DEVICE_CLASS_MOUSE, "mouse", manager.machine().options().mouse(), manager.machine().options().multi_mouse())
 {
 }
Exemplo n.º 8
0
 // construction/destruction
 //-------------------------------------------------
 //  input_class_keyboard - constructor
 //-------------------------------------------------
 public input_class_keyboard(input_manager manager)
     : base(manager, input_device_class.DEVICE_CLASS_KEYBOARD, "keyboard", true, manager.machine().options().multi_keyboard())
 {
     // request a per-frame callback for the keyboard class
     machine().add_notifier(machine_notification.MACHINE_NOTIFY_FRAME, frame_callback);
 }
Exemplo n.º 9
0
        joystick_map m_joymap;               // joystick map for this device
        //s32                     m_joystick_deadzone;    // deadzone for joystick
        //s32                     m_joystick_saturation;  // saturation position for joystick


        // construction/destruction
        //-------------------------------------------------
        //  input_device_joystick - constructor
        //-------------------------------------------------
        public input_device_joystick(input_manager manager, string _name, string _id, object _internal)
            : base(manager, _name, _id, _internal)
        {
            throw new emu_unimplemented();
        }
Exemplo n.º 10
0
 // construction/destruction
 //-------------------------------------------------
 //  input_device_lightgun - constructor
 //-------------------------------------------------
 public input_device_lightgun(input_manager manager, string _name, string _id, object _internal)
     : base(manager, _name, _id, _internal)
 {
 }
Exemplo n.º 11
0
 // construction/destruction
 //-------------------------------------------------
 //  input_device_keyboard - constructor
 //-------------------------------------------------
 public input_device_keyboard(input_manager manager, string _name, string _id, object _internal)
     : base(manager, _name, _id, _internal)
 {
 }