Ejemplo n.º 1
0
        /// <summary>
        /// Creates an instance and reads a stream into it.
        /// </summary>
        public static KeyboardSettings ReadObject(BinaryReader reader)
        {
            var result = new KeyboardSettings();

            result.Read(reader);
            return(result);
        }
Ejemplo n.º 2
0
        protected override void RestoreAdditionalDefaults()
        {
            if (_Keyboard == null)
            {
                _Keyboard = new KeyboardSettings();
            }
            else
            {
                _Keyboard.RestoreDefaults();
            }

            if (_Gamepad == null)
            {
                _Gamepad = new GamepadSettings();
            }
            else
            {
                _Gamepad.RestoreDefaults();
            }
        }
Ejemplo n.º 3
0
 private KeyboardSettings(KeyboardSettings source) : this()
 {
     CopySettingsFrom(source);
 }