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
Note that SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM is set to 1 for my build.
On 2015-09-29 20:38:52 +0000, Alex Baines wrote:
I can't personally reproduce this, but it might be that the group obtained from XkbGetState is out of range for the call to XkbKeycodeToKeysym for that particular (space) key.
I think we're supposed to check XkbKeyGroupInfo + XkbKeyNumGroups and manually correct the group before calling XkbKeyCodeToKeysym. Atleast that's what this stackoverflow answer seems to suggest: http://stackoverflow.com/a/10233743
It seems really weird that XkbKeycodeToKeysym wouldn't do that internally though...
On 2015-09-30 14:31:07 +0000, kongr45gpen wrote:
The call to XkbKeycodeToKeysym does return NoSymbol for me, suggesting that the group is out of range for that key.
On 2015-09-30 19:51:09 +0000, Alex Baines wrote:
Created attachment 2280
Experimental patch to correct groups sent to XkbKeycodeToKeysym
Try this patch, hopefully it will fix the problem.
On 2015-09-30 19:56:39 +0000, kongr45gpen wrote:
Yup, the patch has fixed the issue, thanks!
On 2015-10-01 17:19:51 +0000, Alex Baines wrote:
Created attachment 2282
Patch to correct XkbKeycodeToKeysym groups v2
Here's a better version of the patch that only remaps the group if it was actually out of range.
On 2015-10-01 19:18:44 +0000, Alex Baines wrote:
Created attachment 2283
Patch to correct XkbKeycodeToKeysym groups v3
I was using XkbOutOfRangeGroupInfo instead of XkbOutOfRangeGroupNumber in the last patches, this one fixes that.
Hopefully this one does everything as it should, kinda hard to know since the documentation on this stuff is pretty much non-existent.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Experimental patch to correct groups sent to XkbKeycodeToKeysym (xkb-validate-group.patch, text/plain, 2015-09-30 19:51:09 +0000, 3945 bytes)Patch to correct XkbKeycodeToKeysym groups v2 (xkb-validate-group-v2.patch, text/plain, 2015-10-01 17:19:51 +0000, 4011 bytes)Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2015-09-26 21:36:04 +0000, kongr45gpen wrote:
On 2015-09-29 20:38:52 +0000, Alex Baines wrote:
On 2015-09-30 14:31:07 +0000, kongr45gpen wrote:
On 2015-09-30 19:51:09 +0000, Alex Baines wrote:
On 2015-09-30 19:56:39 +0000, kongr45gpen wrote:
On 2015-10-01 17:19:51 +0000, Alex Baines wrote:
On 2015-10-01 19:18:44 +0000, Alex Baines wrote:
On 2016-10-01 21:22:49 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: