Hi, here is a patch to e-uae, to add 2 USE flags: lctrl: Use the left side of the keyboard, i.e. LCTRL instead of RCTRL with the arrow keys. debug: Uncomment the code line to show all keystrokes. This is useful primarily because there seems to be a bug in xorg or e-uae whereby right-Ctrl has the keycode FF when both pressed and released (and so doesn't get recognized), so I simply use left-Ctrl instead (which is more comfortable anyway).
Created attachment 102283 [details, diff] e-uae-0.8.29_pre20061116.ebuild.patch
Thank you for report Paul. >lctrl: Use the left side of the keyboard, i.e. LCTRL instead of RCTRL with the > arrow keys. > This is useful primarily because there seems to be a bug in xorg or e-uae > whereby right-Ctrl has the keycode FF when both pressed and released (and so > doesn't get recognized), so I simply use left-Ctrl instead. If you consider this is a bug why don't you report upstream? Of course, if you wish I can do that, but currently I do not understand the problem. Rctrl on my keyboard has keycode 109. Can you describe the problem in more details, please? > debug: Uncomment the code line to show all keystrokes. And here I suppose it's much more sane to add --with-debug as configure option and use #ifdef DEBUG in source code. If you create such patch, I can forward it upstream also. In other situation it's very possible that this line disappears from sources in next CVS snapshot/release and thus we have to modify ebuild another time. And that is not a good idea. BTW. A generic thought on bug filling process: You do not need to add URL if that URL does not describe the problem. ;)
(In reply to comment #2) > there seems to be a bug in xorg or e-uae whereby right-Ctrl has the keycode FF when both pressed and released I suspect the bug is most likely in xorg, similar to the oft-reported (on the Gentoo forums) bug of Alt-Ctrl-F1 sometimes switching to the console, and sometimes being ignored. It's the right-Ctrl key that's the problem (a key which I only use in e-uae). The enclosed patch will show the keycode that e-uae receives. All the keys other than right-Ctrl work as expected, but right-Ctrl has the code "FF" (hexadecimal) when pressed, and also "FF" when released. Both these codes are wrong, and are not what e-uae expects, hence the keypress is ignored. I'm stating this merely as background to why I think the patch may be useful to others with a buggy xorg, or want to remap their e-uae keys. Remapping the e-uae keys is only possible AFAIK by editing the source code (excluding the kbd2/kbd3 layouts). > And here I suppose it's much more sane to add --with-debug as configure option and use #ifdef DEBUG in source code. This is true. It is a bit of a hack. I'll submit some cleaned patches upstream, and report what happens...
Paul, so is there any progress here? :)
No progress, sorry. Feel free to close this bug as REPORTER-LAZY.
He-he. Then WONTFIX (The problem described is a bug which will never be fixed) seems to be best here. Actually upstream told on the mailing list that X keys handling will be improved in future, so I hope one day this problem disappears :)