Hi,
I want to write an XInput driver for a sun keyboard connected to the
serial port. I have all the hardware stuff working, but I have
problems on the XInput API side.
Is there any up to date guide on writing an XInput driver? If not,
which of the existing drivers would give a good sample? Unfortunately
the sample.c driver seems to be in a not working state at the moment.
Specifically I have three problems:
1. is it at all possible to write an XInput keyboard driver? Is
setting local->type_name = XI_KEYBOARD; enough?
2. at the end of sunkbdSetupProc I call
xf86AddLocalDevice( local, merged );
xf86AddEnabledDevice( local );
(this comes from sample.c). However, xf86AddLocalDevice is not
defined.
3. how do I inject a keypress into X11? Is this correct:
xf86PostKeyEvent(local->dev, keycode, down, 0, 0, 0);
Finally, I have a questing about a stylus I just hacked a driver
together for (Wintime MT-604). Is it possible to use the stylus
(absolute mode{ for controlling the pointer if it is in proximity, and
the mouse otherwise?
Thanks very much for any help.
Yours,
Thomas <[EMAIL PROTECTED]>
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert