> I've attached some additional code that will print out events.
> Its crude and inefficient, but it might show you some results. Could
> you give it a try?
> The next thing to think about is what action you want the Z axis to
> perform.
>
Firstly, the Z-axis relates to a little blue button on the top of the
mouse that is very much like the cursor in the center of a thinkpad laptop
(i.e. IBM producing a microsoft intellimouse type device with their own
patents). I think the output suggests that it actually records movement in
two axis which suggests that it ought to be used for controlling screen
scroll-bars?!?
Here is the output :
This is for the NetVista mouse using evtest.c -- which doesn't seem to
respond unless the PC is rebooted with the device in (which causes the USB
detection to take a LONG time to finish).
Input device ID: bus 0x3 vendor 0x4b3 product 0x3100 version 0x441
Input device name: "04b3:3100"
Supported events:
Event type 1 (Key)
Event code 272 (LeftBtn)
Event code 273 (RightBtn)
Event code 274 (MiddleBtn)
Event type 2 (Relative)
Event code 0 (X)
Event code 1 (Y)
Event code 2 (Z)
Event code 8 (Wheel)
Testing ... (interrupt to exit)
(Moving the mouse upwards...)
Event: time 1038686212.944286, type 2 (Relative), code 0 (X), value -1
Event: time 1038686214.839936, type 2 (Relative), code 1 (Y), value -2
Event: time 1038686214.863930, type 2 (Relative), code 0 (X), value -2
Event: time 1038686214.871922, type 2 (Relative), code 1 (Y), value -2
Event: time 1038686214.887925, type 2 (Relative), code 0 (X), value -2
Event: time 1038686214.895911, type 2 (Relative), code 1 (Y), value -2
Event: time 1038686214.959907, type 2 (Relative), code 1 (Y), value -1
Event: time 1038686214.991902, type 2 (Relative), code 0 (X), value -1
(Moving the mouse downwards...)
Event: time 1038686284.723192, type 2 (Relative), code 1 (Y), value 1
Event: time 1038686284.803169, type 2 (Relative), code 0 (X), value 1
Event: time 1038686284.811162, type 2 (Relative), code 0 (X), value -1
Event: time 1038686284.819160, type 2 (Relative), code 1 (Y), value 1
Event: time 1038686284.851172, type 2 (Relative), code 1 (Y), value 1
Event: time 1038686284.859158, type 2 (Relative), code 0 (X), value 1
Event: time 1038686284.907149, type 2 (Relative), code 1 (Y), value 1
Event: time 1038686284.947143, type 2 (Relative), code 1 (Y), value 1
Event: time 1038686284.979138, type 2 (Relative), code 1 (Y), value 2
(Moving left...)
Event: time 1038686352.726780, type 2 (Relative), code 0 (X), value -2
Event: time 1038686352.758789, type 2 (Relative), code 0 (X), value -1
Event: time 1038686352.790781, type 2 (Relative), code 0 (X), value -1
Event: time 1038686352.862756, type 2 (Relative), code 0 (X), value -1
Event: time 1038686352.958745, type 2 (Relative), code 0 (X), value -1
Event: time 1038686353.918574, type 2 (Relative), code 0 (X), value 2
Event: time 1038686353.926558, type 2 (Relative), code 1 (Y), value 1
Event: time 1038686353.950557, type 2 (Relative), code 0 (X), value 1
(Moving right...)
Event: time 1038686400.670046, type 2 (Relative), code 0 (X), value 1
Event: time 1038686400.678049, type 2 (Relative), code 0 (X), value 1
Event: time 1038686400.694052, type 2 (Relative), code 0 (X), value 2
Event: time 1038686400.702038, type 2 (Relative), code 0 (X), value 1
Event: time 1038686400.718046, type 2 (Relative), code 0 (X), value 2
Event: time 1038686400.742044, type 2 (Relative), code 0 (X), value 2
Event: time 1038686400.766033, type 2 (Relative), code 0 (X), value 2
Event: time 1038686400.822013, type 2 (Relative), code 0 (X), value 1
Event: time 1038686400.862005, type 2 (Relative), code 0 (X), value 1
Event: time 1038686402.493715, type 2 (Relative), code 1 (Y), value 1
(Moving little blue button up...)
Event: time 1038686594.818629, type 2 (Relative), code 0 (X), value -1
Event: time 1038686594.858633, type 2 (Relative), code 8 (Wheel), value 63
Event: time 1038686594.858638, type 2 (Relative), code 2 (Z), value 19
Event: time 1038686594.882616, type 2 (Relative), code 0 (X), value 1
Event: time 1038686594.914619, type 2 (Relative), code 8 (Wheel), value 63
Event: time 1038686594.914624, type 2 (Relative), code 2 (Z), value 18
Event: time 1038686594.970610, type 2 (Relative), code 8 (Wheel), value 63
Event: time 1038686594.970615, type 2 (Relative), code 2 (Z), value 22
Event: time 1038686594.994601, type 2 (Relative), code 0 (X), value -1
Event: time 1038686595.026605, type 2 (Relative), code 8 (Wheel), value 63
Event: time 1038686595.026610, type 2 (Relative), code 2 (Z), value 16
Event: time 1038686595.082582, type 2 (Relative), code 8 (Wheel), value 63
Event: time 1038686595.082586, type 2 (Relative), code 2 (Z), value 16
Event: time 1038686595.138580, type 2 (Relative), code 8 (Wheel), value 63
Event: time 1038686595.138585, type 2 (Relative), code 2 (Z), value 24
Event: time 1038686595.194561, type 2 (Relative), code 8 (Wheel), value 63
(Moving little blue button down...)
Event: time 1038686627.580667, type 2 (Relative), code 2 (Z), value -17
Event: time 1038686627.636650, type 2 (Relative), code 8 (Wheel), value -63
Event: time 1038686627.636655, type 2 (Relative), code 2 (Z), value -10
Event: time 1038686627.692645, type 2 (Relative), code 8 (Wheel), value -63
Event: time 1038686627.692651, type 2 (Relative), code 2 (Z), value -15
Event: time 1038686627.748634, type 2 (Relative), code 8 (Wheel), value -63
Event: time 1038686627.748638, type 2 (Relative), code 2 (Z), value -7
Event: time 1038686627.796622, type 2 (Relative), code 8 (Wheel), value -63
Event: time 1038686627.796627, type 2 (Relative), code 2 (Z), value -7
Event: time 1038686627.852615, type 2 (Relative), code 8 (Wheel), value -63
Event: time 1038686627.852621, type 2 (Relative), code 2 (Z), value -11
Event: time 1038686627.908601, type 2 (Relative), code 8 (Wheel), value -63
Event: time 1038686627.908606, type 2 (Relative), code 2 (Z), value -11
Event: time 1038686627.964593, type 2 (Relative), code 8 (Wheel), value -63
(Moving little blue button left...)
Event: time 1038686671.148720, type 2 (Relative), code 2 (Z), value -63
Event: time 1038686671.204706, type 2 (Relative), code 8 (Wheel), value -13
Event: time 1038686671.204712, type 2 (Relative), code 2 (Z), value -63
Event: time 1038686671.260696, type 2 (Relative), code 8 (Wheel), value -13
Event: time 1038686671.260701, type 2 (Relative), code 2 (Z), value -63
Event: time 1038686671.316685, type 2 (Relative), code 8 (Wheel), value -19
Event: time 1038686671.316690, type 2 (Relative), code 2 (Z), value -63
Event: time 1038686671.372678, type 2 (Relative), code 8 (Wheel), value -23
Event: time 1038686671.372684, type 2 (Relative), code 2 (Z), value -63
Event: time 1038686671.428669, type 2 (Relative), code 8 (Wheel), value -19
Event: time 1038686671.428673, type 2 (Relative), code 2 (Z), value -56
Event: time 1038686671.476657, type 2 (Relative), code 8 (Wheel), value 9
(Moving little blue button right...)
Event: time 1038686702.886931, type 2 (Relative), code 8 (Wheel), value 47
Event: time 1038686702.886937, type 2 (Relative), code 2 (Z), value 49
Event: time 1038686702.934924, type 2 (Relative), code 8 (Wheel), value 47
Event: time 1038686702.934930, type 2 (Relative), code 2 (Z), value 49
Event: time 1038686702.990911, type 2 (Relative), code 8 (Wheel), value 47
Event: time 1038686702.990917, type 2 (Relative), code 2 (Z), value 51
Event: time 1038686703.046903, type 2 (Relative), code 8 (Wheel), value 47
Event: time 1038686703.046909, type 2 (Relative), code 2 (Z), value 49
Event: time 1038686703.102893, type 2 (Relative), code 8 (Wheel), value 47
Event: time 1038686703.102898, type 2 (Relative), code 2 (Z), value 51
Event: time 1038686703.158885, type 2 (Relative), code 8 (Wheel), value 47
Event: time 1038686703.158891, type 2 (Relative), code 2 (Z), value 49
Event: time 1038686703.214872, type 2 (Relative), code 8 (Wheel), value 45
Event: time 1038686703.214877, type 2 (Relative), code 2 (Z), value 56
(oh yes... left button and right button)
Event: time 1038686854.307318, type 1 (Key), code 272 (LeftBtn), value 1
Event: time 1038686854.411299, type 1 (Key), code 272 (LeftBtn), value 0
Event: time 1038686854.507284, type 1 (Key), code 272 (LeftBtn), value 1
Event: time 1038686854.587269, type 1 (Key), code 272 (LeftBtn), value 0
Event: time 1038686854.675250, type 1 (Key), code 272 (LeftBtn), value 1
Event: time 1038686854.755239, type 1 (Key), code 272 (LeftBtn), value 0
Event: time 1038686857.714704, type 1 (Key), code 273 (RightBtn), value 1
Event: time 1038686857.826676, type 1 (Key), code 273 (RightBtn), value 0
Event: time 1038686857.930658, type 1 (Key), code 273 (RightBtn), value 1
Event: time 1038686858.018643, type 1 (Key), code 273 (RightBtn), value 0
Event: time 1038686858.106622, type 1 (Key), code 273 (RightBtn), value 1
Event: time 1038686858.186609, type 1 (Key), code 273 (RightBtn), value 0
Event: time 1038686858.274594, type 1 (Key), code 273 (RightBtn), value 1
Using the read-event.c file you kindly sent me I get nothing for mouse
movements, only for button clicks :
(left click)
Event: time 1038686946.378508, type 1, code 272, value 1
Event: time 1038686946.490502, type 1, code 272, value 0
Event: time 1038686946.570497, type 1, code 272, value 1
Event: time 1038686946.666475, type 1, code 272, value 0
Event: time 1038686946.746462, type 1, code 272, value 1
Event: time 1038686946.842437, type 1, code 272, value 0
(right click)
Event: time 1038686947.858257, type 1, code 273, value 1
Event: time 1038686947.970237, type 1, code 273, value 0
Event: time 1038686948.082215, type 1, code 273, value 1
Event: time 1038686948.162193, type 1, code 273, value 0
Event: time 1038686948.258181, type 1, code 273, value 1
Event: time 1038686948.386162, type 1, code 273, value 0
> I'm still not sure about the superpen tablet. We need to figure out if
> it can meet the HID requirements, or we need to try one of the other
> drivers. Give the trivial read-event a try, and I'll think about the
> problem a bit more.
>
Now... for the more challenging UC-Logic SuperPen (SP)...
Basically... nowt.
I've tried every permutation - including leaving the SP as the only USB
device plugged in and rebooting the PC.(I know it shouldn't make a
difference but it seemed to for the mouse)...
Both evtest.c and read-event.c can't detect anything, including 'clicks'
on the buttons of the stylus...Damn!!!
I should point out that the SP does work in windows - it isn't faulty-,
and this is the last remaining reason I have for continuing to use the
spawn of Gates!
What should I do now?!?!? With respect to driving the SP - humour my naive
stupidity please :) - I assume that if it supplies absolute coordinates
(which, granted, it isn't even doing at the moment ;) all the driver does
is to divide the 'screen' dimensions by the absolute coordinates of the
device to get a relative position for the cursor? Is there a standard
driver for such devices? Stupid questions probably...
Many thanks for your patience.
Ben
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users