Generate keypresses like the Robot class in java
I'm the author of rejoystick (http://rejoystick.sourceforge.net/). I want to make it to work on more platforms than GNU/Linux. It's a C program that maps joystick events to keyboard key presses. So two things are needed
1. Be able to read from the joystick (Right now I'm using SDL)
2. Be able to generate a key press event (Right now I'm using the Xtest library in GNU/Linux but that only works with an X server)
1 can easily be done with SDL but 2 is harder. I found the Robot class in java which does exactly that; http://java.sun.com/j2se/1.3/docs/api/j ... Robot.html but java doesn't have bindings for SDL (well they do but they aren't that good).
So, do you know of any cross-platform library that does what the Xtest library or the Robot class does?
Thanks in advance!