From: Voluspa <li...@te...> - 2005-03-22 18:02:22
|
On Tue, 22 Mar 2005 18:35:39 +0100 Voluspa wrote: > and it turned out to be just the right one. With that fix wacdump and xidump > show pad life with the correct values, and my ExpressKeys program works just > like before :-) Correction, the "pen switch mode" between absolute and relative of my ExpressKeys program stopped working. One switch, and the pen is "unconnected" meaning I can't draw with it. Next switch, back to absolute, and all is well, asf This is with the wacom_drv.o compiled from linuxwacom-dev. The linuxwacom-0.6.6 wacom_drv.o prebuilt and my-built allow the pen mode switches... sigh, there's always something. The pen swith mode is adopted from setmode.c in xinput-1.2.tar.gz by Frederic Lepied. int toggle_pen_mode(Display *display, char *name) { XDeviceInfo *info; XDevice *device; info = find_device_info(display, PEN_NAME, True); if (!info) { fprintf(stderr, "unable to find device %s\n", PEN_NAME); return 0; } if (pen_mode == Absolute) { pen_mode = Relative; } else { pen_mode = Absolute; } device = XOpenDevice(display, info->id); if (device) { XSetDeviceMode(display, device, pen_mode); return 0; } else { fprintf(stderr, "Unable to open device %s\n", PEN_NAME); return 0; } } Mvh Mats Johannesson -- |