{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/3836","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/3836/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/3836/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/3836/events","html_url":"https://github.com/mono/MonoGame/issues/3836","id":75241744,"number":3836,"title":"Monogame WindowsGL ignores keyboard layout.","user":{"login":"BaseCrosser","id":7582207,"avatar_url":"https://avatars.githubusercontent.com/u/7582207?v=3","gravatar_id":"","url":"https://api.github.com/users/BaseCrosser","html_url":"https://github.com/BaseCrosser","followers_url":"https://api.github.com/users/BaseCrosser/followers","following_url":"https://api.github.com/users/BaseCrosser/following{/other_user}","gists_url":"https://api.github.com/users/BaseCrosser/gists{/gist_id}","starred_url":"https://api.github.com/users/BaseCrosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaseCrosser/subscriptions","organizations_url":"https://api.github.com/users/BaseCrosser/orgs","repos_url":"https://api.github.com/users/BaseCrosser/repos","events_url":"https://api.github.com/users/BaseCrosser/events{/privacy}","received_events_url":"https://api.github.com/users/BaseCrosser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-11T14:29:01Z","updated_at":"2015-05-28T09:42:35Z","closed_at":null,"body":"Greetings,\r\n\r\nA few points:\r\n- I'm using MonoGame 3.4\r\n- My keyboard layout is AZERTY\r\n- I have checked my language and keyboard settings on my computer and everything is correct\r\n\r\nThe problem I'm having is that the OpenGL versions of MonoGame seems to ignore the keyboard layout.\r\n\r\nI created a little piece of testing code which is:\r\n```C#\r\n/// <summary>\r\n/// This is called when the game should draw itself.\r\n/// </summary>\r\n/// <param name=\"gameTime\">Provides a snapshot of timing values.</param>\r\nprotected override void Draw(GameTime gameTime)\r\n{\r\n    // Testing fields\r\n    Color clearColor = Color.MonoGameOrange;\r\n    KeyboardState keyboardState = Keyboard.GetState();\r\n\r\n    if (keyboardState.IsKeyDown(Keys.Escape))\r\n        Exit();\r\n\r\n    // Testing code\r\n    if (keyboardState.IsKeyDown(Keys.A))\r\n        clearColor = Color.Black;\r\n    else if (keyboardState.IsKeyDown(Keys.Q))\r\n        clearColor = Color.White;\r\n\r\n    // Show the clearColor\r\n    GraphicsDevice.Clear(clearColor);\r\n\r\n    base.Draw(gameTime);\r\n}\r\n```\r\n\r\nWhen I'm pressing the A key the screen turns white and when I'm pressing the Q key the screen turns black. It should be inversed. \r\nWhen debugging I saw that MonoGame thinks I have a QWERTY keyboard when in fact I have an AZERTY keyboard. But the GameWindow.TextInput event does not suffer from this error. It gives the correct characters.\r\nWhen testing this piece of code on the WindowsDX version everything worked just as it should, no problems.\r\n\r\nThankyou for the work you guys are doing."},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/106250167","html_url":"https://github.com/mono/MonoGame/issues/3836#issuecomment-106250167","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/3836","id":106250167,"user":{"login":"Frassle","id":1398274,"avatar_url":"https://avatars.githubusercontent.com/u/1398274?v=3","gravatar_id":"","url":"https://api.github.com/users/Frassle","html_url":"https://github.com/Frassle","followers_url":"https://api.github.com/users/Frassle/followers","following_url":"https://api.github.com/users/Frassle/following{/other_user}","gists_url":"https://api.github.com/users/Frassle/gists{/gist_id}","starred_url":"https://api.github.com/users/Frassle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frassle/subscriptions","organizations_url":"https://api.github.com/users/Frassle/orgs","repos_url":"https://api.github.com/users/Frassle/repos","events_url":"https://api.github.com/users/Frassle/events{/privacy}","received_events_url":"https://api.github.com/users/Frassle/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T09:42:35Z","updated_at":"2015-05-28T09:42:35Z","body":"Can you build and run the examples? One of the examples is GameWindowStates and it prints a load of debug info to the screen including key presses, if you can run that it's probably good enough to test the keyboard layout for now and then I'll worry about wgl.cs issues."}}