FreeSpacenav / spacenavd

Free user-space driver for 6-dof space-mice.
http://spacenav.sourceforge.net
GNU General Public License v3.0
279 stars 55 forks source link

Use XTestFakeKeyEvent to send keys #40

Closed galou closed 3 years ago

galou commented 3 years ago

Using XTestFakeKeyEvent rather than XSendEvent makes Shift, Control and Alt working. The Escape key was working also with XSendEvent. Other keys were not tested.

jtsiomb commented 3 years ago

I merged your earlier changes, and fixed the issues myself. Thanks for the contribution, closing this pull request.

galou commented 3 years ago

OK, it's the first time I program for X11 and I must have missed some subtleties. I though that the XTEST extension is a library and thus the test must be done only once (hence the static variables). Anyway, I'm glad that you used part of my code. Thanks for integrating this change!