Global keyboard events to SDL

Could a function be added for API users to register key combinations
pressed globally to be posted as SDL events? This is a very
platform-specific aspect of input handling that would fit well in SDL.
For instance, it would be useful for implementing a push-to-talk
shortcut in the voice chat program I’m working on.

JOhn

Why would it “fit well in SDL?”

Why is it platform-specific?

Because every OS would use different low level methods to signal you
want to receive input not specifically for the application. I think
this fits in SDL because SDL’s purpose is providing a cross-platform
wrapper for low-level input and output tasks, and I think this
qualifies as one.

Also, catching these events in an SDL application would require two event loops.

Why would it “fit well in SDL?”

Why is it platform-specific?

Because every OS would use different low level methods to signal you
want to receive input not specifically for the application.

Are you saying that you want to catch a specific key press or
combination of key presses even if your application doesn’t have focus?

I think
this fits in SDL because SDL’s purpose is providing a cross-platform
wrapper for low-level input and output tasks, and I think this
qualifies as one.

Also, catching these events in an SDL application would require two event loops.

Why is that? If you are looking for key combinations you just need to
keep around a little state information.

		Bob PendletonOn Wed, 2004-09-08 at 03:31, John Blitch wrote:

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

±-------------------------------------+