示例#1
0
 public void RemoveJoystickInfo(JoystickInfo info)
 {
     NameJoystickInfosDict.Remove(info.Name);
     joystickInfos.Remove(info);
 }
示例#2
0
 public void CopyAxes(JoystickInfo info)
 {
     SetAxes(info.GetAxes());
 }
示例#3
0
 public void AddJoystickInfo(JoystickInfo info)
 {
     info.SetListeners();
     NameJoystickInfosDict[info.Name] = info;
     joystickInfos.Add(info);
 }
示例#4
0
 public void SwitchInput(JoystickInfo info)
 {
     SwitchButtons(info);
     SwitchAxes(info);
 }
示例#5
0
        public void SwitchButtons(JoystickInfo info)
        {
            JoystickButton[] otherButtons = info.GetButtons();

            info.SetButtons(GetButtons());
            SetButtons(otherButtons);
        }
示例#6
0
        public void SwitchAxes(JoystickInfo info)
        {
            JoystickAxis[] otherAxes = info.GetAxes();

            info.SetAxes(GetAxes());
            SetAxes(otherAxes);
        }
示例#7
0
 public void CopyInput(JoystickInfo info)
 {
     CopyButtons(info);
     CopyAxes(info);
 }
示例#8
0
 public void CopyButtons(JoystickInfo info)
 {
     SetButtons(info.GetButtons());
 }