Sending events to another SDL process

I’m trying to write a trivial application to send key events to a
running SDL process. Specifically, I’m trying to make it possible to
send key presses the SDL-based FCE Ultra emulator on my Linux box
using a remote control. I’d like to take input from lircd, the Linux
IR daemon, and send it to the emulator process, but I’ve looked
through the SDL sources and I can’t figure out a way to do this.
Preferably, I’d like to find a way to do it without patching the
emulator to support lircd directly. Any thoughts/suggestions would be
appreciated. Thanks!–
M. Zole * www.zole.org

Le Sun, 13 Mar 2005 17:28:55 -0500
Zole <michael.zole at gmail.com> a ?crit:

Preferably, I’d like to find a way to do it without patching the
emulator to support lircd directly. Any thoughts/suggestions would be
appreciated. Thanks!

The better approach would be to consider the remote control as a new
type of input device, like keyboard, mouse and joysticks. For example,
with lirc support, you could “emulate” a joystick, which has many
buttons (but not axis or hats, just buttons).

The problem is that SDL only supports Linux joysticks via /dev/js. You
can’t add several joystick drivers for the same OS. This is especially
interesting, given that you can access mouse via serial port (if you’re
running from a text console) or via X11 input if you’re running X11.

I think it would be nice in future SDL version to support different
methods to access the same device. This is already the case for audio
and video. We just need to extend it to input devices, CD-ROM, and
everything else supported by SDL.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux