Пример #1
0
        private static void OnJoystickButtonDown(object sender, SdlDotNet.Input.JoystickButtonEventArgs e)
        {
            if (PausedShowMenu)
            {
                Rooms[RoomIndex].DoJoystickButtonDown(e);
                return;
            }

            CheckJoyShortcuts();
        }
Пример #2
0
        public override void DoJoystickButtonDown(SdlDotNet.Input.JoystickButtonEventArgs e)
        {
            if (!lockKeysJoystick)
            {
                base.DoJoystickButtonDown(e);
            }
            else
            {
                lockKeysJoystick = false;

                Items[SelectedMenuIndex].Options.Clear();
                Items[SelectedMenuIndex].Options.Add(e.Button.ToString());
            }
        }
Пример #3
0
 /// <summary>
 /// Processes a joystick button event. This event is triggered by
 /// SDL. Only
 /// sprites that are JoystickSensitive are processed.
 /// </summary>
 /// <param name="args">Event args</param>
 public virtual void Update(JoystickButtonEventArgs args)
 {
 }
Пример #4
0
 private void JoystickButtonDown(object sender, JoystickButtonEventArgs e)
 {
     Console.WriteLine("Joystick button was pressed");
 }
Пример #5
0
 static void OnJoystickButtonUp(JoystickButtonEventArgs e)
 {
     if (JoystickButtonUp != null)
     {
         JoystickButtonUp(instance, e);
     }
 }
Пример #6
0
 static void OnJoystickButtonDown(JoystickButtonEventArgs e)
 {
     if (JoystickButtonDown != null)
     {
         JoystickButtonDown(instance, e);
     }
 }