private void Modifier_Click(object sender, RoutedEventArgs e)
        {
            ModifierButtonClear.IsEnabled = false;
            ModifierButton.IsEnabled      = false;

            InputDeviceManager.AssignButton(device =>
            {
                ModifierButtonClear.IsEnabled = true;
                ModifierButton.IsEnabled      = true;

                ModifierDevice.Text = device.DeviceName;
                ModifierText.Text   = device.Button < 128 ? device.Button.ToString() : "POV " + (device.Button - 127);
                //output POV info;

                device.InputBind = ModifierBinding;

                SettingsStore.Instance.SetControlSetting(device);
            });
        }
        private void Modifier_Click(object sender, RoutedEventArgs e)
        {
            ModifierButtonClear.IsEnabled = false;
            ModifierButton.IsEnabled      = false;

            InputDeviceManager.AssignButton(device =>
            {
                ModifierButtonClear.IsEnabled = true;
                ModifierButton.IsEnabled      = true;

                ModifierDevice.Text = device.DeviceName;
                ModifierText.Text   = device.Button < 128 ? device.Button.ToString() : "POV " + (device.Button - 127);
                //output POV info;

                device.InputBind = ModifierBinding;

                InputDeviceManager.InputConfig.InputDevices[(int)ModifierBinding] = device;
                InputDeviceManager.InputConfig.WriteInputRegistry(ModifierBinding, device);
            });
        }
Exemple #3
0
        private void Device_Click(object sender, RoutedEventArgs e)
        {
            DeviceClear.IsEnabled  = false;
            DeviceButton.IsEnabled = false;


            InputDeviceManager.AssignButton(device =>
            {
                DeviceClear.IsEnabled  = true;
                DeviceButton.IsEnabled = true;

                Device.Text     = device.DeviceName;
                DeviceText.Text = device.Button < 128 ? (device.Button + 1).ToString() : "POV " + (device.Button - 127);
                //output POV info;

                device.InputBind = ControlInputBinding;

                GlobalSettingsStore.Instance.ProfileSettingsStore.SetControlSetting(device);
            });
        }
        private void Device_Click(object sender, RoutedEventArgs e)
        {
            DeviceClear.IsEnabled  = false;
            DeviceButton.IsEnabled = false;


            InputDeviceManager.AssignButton(device =>
            {
                DeviceClear.IsEnabled  = true;
                DeviceButton.IsEnabled = true;

                Device.Text     = device.DeviceName;
                DeviceText.Text = device.Button < 128 ? device.Button.ToString() : "POV " + (device.Button - 127);
                //output POV info;

                device.InputBind = ControlInputBinding;

                InputDeviceManager.InputConfig.InputDevices[ControlInputBinding] = device;
                InputDeviceManager.InputConfig.WriteInputRegistry(ControlInputBinding, device);
            });
        }