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(); }
// 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) { }
// 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) { }
// 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()) { }
// 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); }
protected running_machine machine() { return(m_manager.machine()); }