Beispiel #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;
        }
Beispiel #2
0
 public InputMapper(WindowScanner Scanner)
 {
     scanner = Scanner; moveKeys = new bool[Enum.GetNames(typeof(Direction)).Length];
 }