Example #1
0
 public void Reset()
 {
     Player1 = PRESET_KEYBOARD_RIGHT;
     Player2 = PRESET_KEYBOARD_LEFT;
     Chat = new KeyControlType(Keys.Enter);
 }
Example #2
0
 public static PlayerControls FromSettings(PlayerControlsSettings settings)
 {
     return new PlayerControls
     {
         Thrust = settings.Thrust.GetControl(),
         Left = settings.Left.GetControl(),
         Right = settings.Right.GetControl(),
         Fire1 = settings.Fire1.GetControl(),
         Fire2 = settings.Fire2.GetControl(),
         Extra = settings.Extra.GetControl(),
     };
 }
Example #3
0
 public void CopyFrom(PlayerControlsSettings other)
 {
     Thrust = other.Thrust;
     Left = other.Left;
     Right = other.Right;
     Fire1 = other.Fire1;
     Fire2 = other.Fire2;
     Extra = other.Extra;
 }