I have a usb touch device (0eef:0001) D-WAV Scientific Co., Ltd eGalax TouchScreen.Using the Redhat kernel 2.6.32-573 it gets mapped as two joystick devices, js0 and js1. Touching the monitor only results in input on js1.jstest reports seven axises and one button. Two axis are a copy of eachother, axis 3 reports the same as 0, 4 reports the same as 1. Axis 2 and 5 always report 0, axis 6 reports 1 while touching the monitor, and 0 while not. The button always says on.Axes:  0:  1934  1:  2092  2:     0  3:  1934  4:  2092  5:     0  6:     0 Buttons:  0:onI attempted to use jscal to tell it you have `6 axes and 1 button without any luck.I also found in the xorg log there isn't a button so one gets faked.Is there a way without modifying the joydevice kernel module to remap axis 6 to a button? Modifying xorg to remap the axis will not work, software reads directly from /dev/input/js1.
Remap joystick axis as a button
rhel;touch screen;joystick