Пример #1
0
 private void RenderWindow_JoystickConnected(object?sender, JoystickConnectEventArgs e)
 {
     this.JoystickConnected(new JoystickConnectedEvent()
     {
         JoystickID = e.JoystickId
     });
 }
Пример #2
0
 private static void OnJoystickDisconnected(object sender, JoystickConnectEventArgs args)
 {
     if (JoystickId == args.JoystickId)
     {
         JoystickId = GetConnectedJoystickId();
     }
 }
Пример #3
0
 private static void OnJoystickConnected(object sender, JoystickConnectEventArgs args)
 {
     if (JoystickId == _nullJoystickId)
     {
         JoystickId = args.JoystickId;
     }
 }
Пример #4
0
 public static void OnDisconnected(object sender, JoystickConnectEventArgs e)
 {
     if (controllers.ContainsKey(e.JoystickId))
     {
         var controller = controllers[e.JoystickId];
         controller.Disconnected(sender, e);
     }
 }
Пример #5
0
 public void JoystickDisconnected(object joystickConnectEventArgs)
 {
     JoystickConnectEventArgs joystick = (JoystickConnectEventArgs)joystickConnectEventArgs;
 }
Пример #6
0
 protected override void JoystickDisconnected(object sender, JoystickConnectEventArgs arg)
 {
 }
Пример #7
0
 private static void OnJoystickDisonnected(object sender, JoystickConnectEventArgs e)
 {
     Controller.OnDisconnected(sender, e);
     ControllerDisconnected(sender, e);
 }
Пример #8
0
 void OnJoystickConnected(object sender, JoystickConnectEventArgs e)
 {
 }
Пример #9
0
 protected override void JoystickDisconnected(object sender, JoystickConnectEventArgs arg) => GetGameInput().JoystickDisconnected(sender, arg);
 private void OnJoystickDisconnected(object sender, JoystickConnectEventArgs joystickConnectEventArgs)
 {
     JoystickDisconnected(sender, joystickConnectEventArgs);
     //Console.WriteLine("Input Event: Joystick Disconnected: ID: " + joystickConnectEventArgs.JoystickId);
 }
Пример #11
0
 protected abstract void JoystickDisconnected(object sender, JoystickConnectEventArgs arg);
Пример #12
0
 public EventJoystickConnect(JoystickConnectEventArgs args)
 {
     this.JoystickId = (int)args.JoystickId;
 }
Пример #13
0
 static void JoystickDisconnected(object sender, JoystickConnectEventArgs e)
 {
     EventMgr.Notify(Event.JoystickDisconnected, e);
 }
Пример #14
0
        public void JoystickDisconnected(object sender, JoystickConnectEventArgs arg)
        {
#if DEBUG
            $"Controller disconnected: {arg.JoystickId}".Log();
#endif
        }
Пример #15
0
 private static void Window_JoystickConnected(object sender, JoystickConnectEventArgs e)
 {
     window.SetJoystickThreshold(0.05F);
 }
Пример #16
0
 // Fired when a joystick is disconnected.
 private void OnJoystickDisconnected(object sender, JoystickConnectEventArgs e)
 {
 }
Пример #17
0
 // Method to detect if joystick is connected
 private void JoyConnected(object sender, JoystickConnectEventArgs e)
 {
 }
Пример #18
0
Файл: App.cs Проект: Koneke/Eien
 private void JoystickDisconnected(object sender, JoystickConnectEventArgs e)
 {
     Controllers.Remove(Controllers.FirstOrDefault(c => c.id == e.JoystickId));
 }
Пример #19
0
Файл: App.cs Проект: Koneke/Eien
 private void JoystickConnected(object sender, JoystickConnectEventArgs e)
 {
     JoystickConnected(sender, e.JoystickId);
 }
Пример #20
0
 public static void OnJoyStickConnected(object sender, JoystickConnectEventArgs e)
 {
     Console.WriteLine("connected");
     Console.WriteLine(e);
 }