public static void generateDefaultSettings() { CInput CInput = new CInput(); bool isKeyboardQwerty = (CInput.getKeyboardType() == "QWERTY"); _gameSettings = new GameSettingsInfos { KeyMapping = new KeyMapping { MForward = (isKeyboardQwerty) ? Keys.W : Keys.Z, MLeft = (isKeyboardQwerty) ? Keys.A : Keys.Q, MRight = Keys.D, MBackward = Keys.S, MJump = Keys.Space, MCrouch = Keys.C, MSprint = Keys.LeftShift, Console = (isKeyboardQwerty) ? Keys.OemTilde : Keys.OemQuotes, Reload = Keys.R, MouseSensibility = 0.001f, GPSensibility = 0.05f, GPJump = Buttons.A, GPShot = Buttons.RightTrigger, GPRun = Buttons.LeftShoulder, GPCrouch = Buttons.B, GPReload = Buttons.X, GPSwitch = Buttons.Y, GPAim = Buttons.LeftTrigger, }, Video = new Video { ResolutionX = _graphicsDevice.PresentationParameters.BackBufferWidth, ResolutionY = _graphicsDevice.PresentationParameters.BackBufferHeight, } }; saveDatas(); }