You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 1.2 Reported for operating system, platform: Windows (All), x86
Comments on the original bug report:
On 2008-08-30 12:23:56 +0000, Tim Angus wrote:
As we all know SDL 1.2 doesn't handle dead keys well since one key press potentially equals two (or more) characters. For example, on many layouts, keying , results in ,. Since the unicode member of the SDL_keysym struct only has room for one character, only one can be returned.
On Linux, the first character is returned. On Windows however, unless the exact number of characters generated by the keypress is 1, nothing is returned. The following patch addresses this inconsistency.
On 2008-08-30 12:24:42 +0000, Tim Angus wrote:
Created attachment 268
Patch which makes win32 dead key behaviour consistent with other platforms
Aforementioned patch.
On 2009-04-02 08:33:00 +0000, Tim Angus wrote:
Created attachment 314
Patch which makes win32 dead key behaviour consistent with other platforms and correctly respects the state of numlock key
Updated patch which includes a further fix to the handling of the numpad when numlock is on. This further fix is courtesy Amanieu d'Antras.
On 2009-04-02 09:54:07 +0000, Amanieu d'Antras wrote:
That patch was really only intended for use in ioq3, since it make numpad keys return the same keysym as normal number keys when numlock is on. This was done because ioq3 will still interpret the keysym and therefore cause a HOME while typing a 7 on the numpad. The clean way to do this is to make a separate keysym for numpad keys when numlock is on or off.
On 2009-04-02 10:05:12 +0000, Tim Angus wrote:
OK, lets stick to the original patch then.
On 2009-04-02 10:12:55 +0000, Amanieu d'Antras wrote:
Created attachment 317
Only set the unicode, not the keysym
This patch doesn't override the keysym, and therefore should be appropriate for SDL.
On 2009-04-13 01:42:28 +0000, Sam Lantinga wrote:
This was checked in as revision 4484.
Thanks!
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Patch which makes win32 dead key behaviour consistent with other platforms (sdl-win32-deadkey.diff, text/plain, 2008-08-30 12:24:42 +0000, 1073 bytes)Patch which makes win32 dead key behaviour consistent with other platforms and correctly respects the state of numlock key (sdl-win32-deadkey-numlock.diff, text/plain, 2009-04-02 08:33:00 +0000, 1655 bytes)Reported in version: HG 1.2
Reported for operating system, platform: Windows (All), x86
Comments on the original bug report:
On 2008-08-30 12:23:56 +0000, Tim Angus wrote:
On 2008-08-30 12:24:42 +0000, Tim Angus wrote:
On 2009-04-02 08:33:00 +0000, Tim Angus wrote:
On 2009-04-02 09:54:07 +0000, Amanieu d'Antras wrote:
On 2009-04-02 10:05:12 +0000, Tim Angus wrote:
On 2009-04-02 10:12:55 +0000, Amanieu d'Antras wrote:
On 2009-04-13 01:42:28 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: