On Tue, Jan 15, 2008 at 10:48:09PM +1100, Timothy Bourke wrote: > On Jan 15 at 11:58 +0100, Christopher Illies wrote: > > On Mon, Jan 14, 2008 at 10:09:30PM +1100, Timothy Bourke wrote: > > > On Jan 14 at 08:12 +0100, Christopher Illies wrote: > > > > I have a gamepad and would like to make certain gamepad actions to be > > > > seen as regular keyboard input. Is this possible? > > > > > > > > I tried out usbhidaction with something like: > > > > Generic_Desktop:Game_Pad.Button:Button_1 1 1 /bin/echo -n ls > > > > > > > > Obviously, this approach does not work as I hoped. "ls" is echoed in a > > > > shell window, but it is not interpreted as input. > > > > > > Would vkbd(4) do the trick? > > > > Thank you, vkbd sounds interesting. It looks like that there are no > > shell commands to create input to a virtual keyboard, so I will have > > to write my own. > > I don't know about that part of it. I looked at vkbd a long time ago > when trying to make a Super Nintendo controller driver work as a > keyboard. Vkbd almost did the trick, but it's intended to work from > user mode. > > It occurred to me, after my post, that if your script need only work > under X-windows, there are probably have more options for generating > keyboard events. You could, for example, look at x11/padkey, > particularly the doXKey() call. > > Best regards, > > Tim.
Thanks for thank hint. I looked a bit into vkbd now and I also came across your post from February 2007. I agree, the fact that /dev/vkbdctl does not appear by default is confusing. Christopher _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
