Exemple #1
0
        public WoWMapper(IInputPlugin InputDevice)
        {
            inputDevice = InputDevice;

            windowScanner = new WindowScanner(); // Watches for WoW window/process
            inputMapper = new InputMapper(windowScanner); // Handles input conversion to the game
            inputMonitor = new InputMonitor(inputDevice, inputMapper); // Watches for controller input

            inputDevice.Settings.Settings.Read("TouchMode", out touchState);

            inputDevice.OnButtonDown += DoButtonDown;
            inputDevice.OnButtonUp += DoButtonUp;

            if (inputDevice.Peripherals.Touchpad)
                inputDevice.OnTouchpadMoved += DoTouchPad;

            int tLeft, tRight;
            inputDevice.Settings.Settings.Read("TriggerLeft", out tLeft);
            inputDevice.Settings.Settings.Read("TriggerRight", out tRight);

            inputDevice.Thresholds = new InputThresholds()
            {
                TriggerLeft = tLeft,
                TriggerRight = tRight
            };
            inputDevice.Enabled = true;
        }
Exemple #2
0
        public InputMonitor(IInputPlugin Device, InputMapper Mapper)
        {
            inputMapper = Mapper;
            inputDevice = Device;
            movementThread = new Thread(MovementThread);
            mouseThread = new Thread(MouseThread);

            movementThread.Start();
            mouseThread.Start();
        }