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

            CheckJoyShortcuts();
        }
        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());
            }
        }
Example #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)
 {
 }
Example #4
0
 private void JoystickButtonDown(object sender, JoystickButtonEventArgs e)
 {
     Console.WriteLine("Joystick button was pressed");
 }
Example #5
0
 static void OnJoystickButtonUp(JoystickButtonEventArgs e)
 {
     if (JoystickButtonUp != null)
     {
         JoystickButtonUp(instance, e);
     }
 }
Example #6
0
 static void OnJoystickButtonDown(JoystickButtonEventArgs e)
 {
     if (JoystickButtonDown != null)
     {
         JoystickButtonDown(instance, e);
     }
 }