[SDL] is possible to fake joy button pressed?
RodrigoCard
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.
fbs777 wrote:
> 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
> fi
> fi
>
> 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...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120219/3fa3990d/attachment.htm>
More information about the SDL
mailing list