[SDL] USB Keyboard and Drive issue
kevin devries
kevin at verticalpower.com
Sat Jun 2 09:29:28 PDT 2007
I have a system that needs to 'hot swap' between a USB keyboard and thumb drive.
I have a thread that waits for keyboard inputs via SDL_waitEvent(), and
occasionally, the thread will die a terrible death when a thumb drive is being
accessed (typically on a write). Is there a way to 'disable' keyboard SDL events
from occurring while the thumb drive is in place (or while there is no keyboard
inserted)? I could not 'listen' for events, but that won't stop spurious events
from getting in the queue.
I'm using SDL version 1.2.11 on linux kernel 2.6.17 (CPU is XScale-PXA270)
thanks much!
More information about the SDL
mailing list