Dave Mielke <[EMAIL PROTECTED]> writes: > How should we decide which event device is the keyboard? The simplest might > be > someting like selecting the first device which can deliver some well-known > key > event, e.g. space or enter. Any better ideas?
Yes, select the keyboard based on the bindings the user configured. I.e., if I have a binding for KEY_HELP, it does not make sense to select a keyboard without that key. > What about systems with more than one keyboard? I think the approach above would eliminate most race conditions with several keyboards. Ideally, brltty could grab all keyboards that have the keys the user wants to use. > Does anyone know what happens if the same event device is opened more than > once, which could happen, for example, if more than one brltty is started? I *think* if the application does not "grab" the keyboard, other apps can still open the device. I never tested what happens if a grabbed keyboard gets opened a second time, but that should be fairly easy to test with a custom piece of C code. I am currently swamped with work, so I could look at this case on the weekend at the earliest. -- CYa, Mario | Debian Developer <URL:http://debian.org/> .''`. | Get my public key via finger [EMAIL PROTECTED] : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44 `. `' `- <URL:http://delysid.org/> <URL:http://www.staff.tugraz.at/mlang/> _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@mielke.cc For general information, go to: http://mielke.cc/mailman/listinfo/brltty