[SDL] USB Keyboard and Drive issue
Ryan C. Gordon
icculus at icculus.org
Sat Jun 2 13:00:56 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)?
To be clear, the thumb drive is generating keyboard events, or you just
don't want keyboard events while the drive is inserted?
(in the former case, that sounds like a kernel bug, and in the later,
I'd say just ignore keyboard events while the drive is inserted.)
--ryan.
More information about the SDL
mailing list