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(); }
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); }
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>(); }
public switch_code_poller(input_manager manager) : base(manager) { }
// 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); }
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(); }
// construction/destruction //------------------------------------------------- // input_device_lightgun - constructor //------------------------------------------------- public input_device_lightgun(input_manager manager, string _name, string _id, object _internal) : base(manager, _name, _id, _internal) { }
// construction/destruction //------------------------------------------------- // input_device_keyboard - constructor //------------------------------------------------- public input_device_keyboard(input_manager manager, string _name, string _id, object _internal) : base(manager, _name, _id, _internal) { }