private void Controller_ButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, Button8)) { // Oculus ASW off CRTL+KP1 Swff2Controller.SendKeyCombo(new byte[] { 0x80 }, 0x31); } if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, Button7)) { // Take Picture ALT-F10 Swff2Controller.SendKeyCombo(new byte[] { 0x82 }, 0xCB); } if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, Button5)) { // HUD off CRTL+ALT+G Swff2Controller.SendKeyCombo(new byte[] { 0x80, 0x82 }, 0x47); } if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, Button2) && Swff2Controller.SharedState.ThrottleShiftStateValue == EliteSharedState.ThrottleShiftState.Shift1) { // Focus window System.Console.WriteLine(Utils.FocusWindow("EliteDangerous64")); } }
private void ControllerButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, button6)) { ClientActions.Action(this, ClientActions.ClipboardAction()); } }
private void ControllerButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, Button8)) { // Oculus ASW off CRTL+KP1 Swff2Controller.SendKeyCombo(new byte[] { 0x80 }, 0x31); } if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, Button7)) { // Take Picture ALT-F10 Swff2Controller.SendKeyCombo(new byte[] { 0x82 }, 0xCB); } if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, Button5)) { // Focus Elite Window ClientActions.FocusProcess(this); } if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, Button2) && Swff2Controller.SharedState.ThrottleShift1) { // Focus Elite Window ClientActions.FocusProcess(this); } }
private void Controller_ButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { if ((e.Buttons & (uint)Faz.SideWinderSC.Logic.KeypadButton.ButtonHtml) == (uint)Faz.SideWinderSC.Logic.KeypadButton.ButtonHtml) { // Oculus ASW off CRTL+KP1 ghKpController.SendKeyCombo(new byte[] { 0x80 }, 0x31); } }
private void Controller_ButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { if (Swff2Controller.TestButtonPressed(e.PreviousButtons, e.Buttons, button6)) { if (System.Windows.Clipboard.ContainsText()) { swff2Controller.TypeFromClipboard(); } } }
private void ControllerButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { uint buttonIndex = 1; foreach (Faz.SideWinderSC.Logic.Swff2Button value in Enum.GetValues(typeof(Faz.SideWinderSC.Logic.Swff2Button))) { bool pressed = ((e.Buttons & (int)value) == (int)value); swff2Controller.SetJoystickButton(pressed, buttonIndex, vJoyTypes.StickAndPedals); buttonIndex++; } }
private void Controller_ButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { uint buttonIndex = 19; foreach (Faz.SideWinderSC.Logic.KeypadButton value in Enum.GetValues(typeof(Faz.SideWinderSC.Logic.KeypadButton))) { bool pressed = ((e.Buttons & (int)value) == (int)value); ghKpController.SetJoystickButton(pressed, buttonIndex, vJoyTypes.Virtual); buttonIndex++; } this.ghKpController.VisualState.UpdateButtons(e.Buttons); }
private void Controller_ButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { this.scController.VisualState.UpdateButtons(e.Buttons); }
private void ControllerButtonsChanged(object sender, Faz.SideWinderSC.Logic.ButtonsEventArgs e) { }