We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 272

Summary: Dvorak Keyboard Layout broken
Product: SDL Reporter: Greg Kennedy <hornpipe2>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: 1.2.11   
Hardware: x86   
OS: Windows (All)   

Description Greg Kennedy 2006-07-06 11:10:01 UTC
The latest stable release binary (1.2.11) is no longer recognizing my alternate keyboard layout correctly: all keypresses are interpreted as if I were using a QWERTY layout.

I do not have this problem using a 1.2.10 development version supplied with a DevPak for Dev-C++ (from www.devpaks.org)
Comment 1 Ryan C. Gordon 2007-02-15 04:35:04 UTC
This is likely because we default to the windib driver now. Try forcing the directx driver and see if it makes a difference.

   // Put this before the call to SDL_Init() ...
   SDL_putenv("SDL_VIDEODRIVER=directx");

--ryan.

Comment 2 Ryan C. Gordon 2007-07-03 03:09:27 UTC
Tossing bug to Sam...this will probably be fixed as a side effect of the new keyboard code slated for 1.3? Please decide if you want to tackle this for 1.2, otherwise flag it as WONTFIX.

--ryan.

Comment 3 Sam Lantinga 2007-07-05 23:41:07 UTC
This appears to work with the latest SDL 1.2 snapshot and Windows 98

Here's the output of QWERTY in the DVORAK layout:
Key pressed:  39-'  (') modifiers: (none)
Key pressed:  44-,  (,) modifiers: (none)
Key pressed:  46-.  (.) modifiers: (none)
Key released:  39-'  modifiers: (none)
Key pressed:  112-p  (p) modifiers: (none)
Key released:  44-,  modifiers: (none)
Key released:  46-.  modifiers: (none)
Key released:  112-p  modifiers: (none)
Key pressed:  121-y  (y) modifiers: (none)
Key released:  121-y  modifiers: (none)
Key pressed:  102-f  (f) modifiers: (none)
Key released:  102-f  modifiers: (none)

Can you retest and reopen this bug if you're still seeing a problem with the latest SDL code?
You can get it from: http://www.libsdl.org/tmp/SDL-1.2.zip