[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keyboard events
On Wed, Mar 14, 2001 at 01:36:06PM -0800, Peter Jay Salzman wrote:
> i have a small project in mind. xvoice is an application that uses IBM's
> speech recognition API. currently, it uses "synthetic events" to send
> information to X applications. this is how X gets gets "words" from your
> speech. many applications don't like synthetic events since they're
> considered a security risk.
>
> i was thinking of looking into a module which takes xvoice events and inject
> them into the kernel as keyboard input.
Hmm, so you want to solve a policy problem in the kernel? This is
wrong, a kernel only offers mechanisms, policy has to be done in
userspace.
> currently, i don't have the faintest clue how to do this. it seems like
> this is what a USB keyboard needs to do. so that may be a good start.
Yes, Vojtek Pavlik's input layer. See the Linux Console project:
http://linuxconsole.sourceforge.net/
> if anyone has inspiration, words of wisdom or tidbits which might be
> helpful, can you share them with me?
Don't do it in kernel land. This is a userspace problem, so it should
be solved in userspace. The best way to solve it is to write an Xinput
module that handles IBM voice stuff and sends them as "real" X events.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.surriel.com/kernelnewbies.shtml