[SDL] is possible to fake joy button pressed?
cuecax at gmail.com
Sun Feb 19 09:37:29 PST 2012
If you want to simulate inside your app, do as Brian said, use SDL_PushEvent.
But, if you want to send the event to another app, you need to look for OS specific stuff, cause there is no API for that in SDL.
> i need to make a function but i dont know if is possible.
> the function is something like:
> if joy button 8 is pressed then
> if file /tmp/temp exist then
> press joy button 6
> so, if button 8 is pressed and the file /tmp/temp exist, then the program send a fake button 6 press
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL