Commit 4526a716 authored by Owen W. Taylor's avatar Owen W. Taylor
Browse files

Fix scrolling direction

X button 5 (down) corresponds to an evdev "value" of -1. Fix in the
record code and in the existing tests.
parent c9f969f7
......@@ -101,7 +101,7 @@ xrecord_callback (XPointer closure,
void *detailp = GUINT_TO_POINTER(button);
if (button == 4 || button == 5) {
dump_event(recorder, "Wheel", xevent, button == 4 ? -1 : 1);
dump_event(recorder, "Wheel", xevent, button == 4 ? 1 : -1);
goto next;
}
......
......@@ -246,9 +246,9 @@ MotionNotify,14033,544,480,0
MotionNotify,14041,543,480,0
MotionNotify,14049,542,480,0
MotionNotify,14065,541,479,0
Wheel,14361,541,479,1
Wheel,14361,541,479,-1
MotionNotify,14401,541,480,0
Wheel,14433,541,480,1
Wheel,14433,541,480,-1
MotionNotify,14625,542,480,0
MotionNotify,15273,543,480,0
MotionNotify,15305,544,479,0
......@@ -268,64 +268,64 @@ MotionNotify,16153,549,469,0
MotionNotify,16169,550,469,0
MotionNotify,16177,550,468,0
MotionNotify,16201,550,467,0
Wheel,16345,550,467,1
Wheel,17217,550,467,1
Wheel,18089,550,467,1
Wheel,18849,550,467,1
Wheel,19401,550,467,1
Wheel,19953,550,467,1
Wheel,20505,550,467,1
Wheel,21929,550,467,1
Wheel,22825,550,467,1
Wheel,24793,550,467,1
Wheel,25385,550,467,1
Wheel,25433,550,467,1
Wheel,26097,550,467,1
Wheel,26177,550,467,1
Wheel,27097,550,467,1
Wheel,27777,550,467,1
Wheel,27849,550,467,1
Wheel,28545,550,467,1
Wheel,29273,550,467,1
Wheel,29377,550,467,1
Wheel,30161,550,467,1
Wheel,30881,550,467,1
Wheel,31001,550,467,1
Wheel,31561,550,467,1
Wheel,32833,550,467,1
Wheel,33441,550,467,1
Wheel,33473,550,467,1
Wheel,33505,550,467,1
Wheel,33601,550,467,1
Wheel,35169,550,467,1
Wheel,36233,550,467,1
Wheel,37153,550,467,1
Wheel,37889,550,467,1
Wheel,38609,550,467,1
Wheel,39265,550,467,1
Wheel,39865,550,467,1
Wheel,40641,550,467,1
Wheel,40697,550,467,1
Wheel,41057,550,467,1
Wheel,41137,550,467,1
Wheel,42345,550,467,1
Wheel,42409,550,467,1
Wheel,43185,550,467,1
Wheel,43233,550,467,1
Wheel,43305,550,467,1
Wheel,43857,550,467,1
Wheel,43993,550,467,1
Wheel,44849,550,467,1
Wheel,45825,550,467,1
Wheel,45913,550,467,1
Wheel,46601,550,467,1
Wheel,47433,550,467,1
Wheel,48353,550,467,1
Wheel,48465,550,467,1
Wheel,48761,550,467,1
Wheel,48865,550,467,1
Wheel,49161,550,467,1
Wheel,49473,550,467,1
Wheel,16345,550,467,-1
Wheel,17217,550,467,-1
Wheel,18089,550,467,-1
Wheel,18849,550,467,-1
Wheel,19401,550,467,-1
Wheel,19953,550,467,-1
Wheel,20505,550,467,-1
Wheel,21929,550,467,-1
Wheel,22825,550,467,-1
Wheel,24793,550,467,-1
Wheel,25385,550,467,-1
Wheel,25433,550,467,-1
Wheel,26097,550,467,-1
Wheel,26177,550,467,-1
Wheel,27097,550,467,-1
Wheel,27777,550,467,-1
Wheel,27849,550,467,-1
Wheel,28545,550,467,-1
Wheel,29273,550,467,-1
Wheel,29377,550,467,-1
Wheel,30161,550,467,-1
Wheel,30881,550,467,-1
Wheel,31001,550,467,-1
Wheel,31561,550,467,-1
Wheel,32833,550,467,-1
Wheel,33441,550,467,-1
Wheel,33473,550,467,-1
Wheel,33505,550,467,-1
Wheel,33601,550,467,-1
Wheel,35169,550,467,-1
Wheel,36233,550,467,-1
Wheel,37153,550,467,-1
Wheel,37889,550,467,-1
Wheel,38609,550,467,-1
Wheel,39265,550,467,-1
Wheel,39865,550,467,-1
Wheel,40641,550,467,-1
Wheel,40697,550,467,-1
Wheel,41057,550,467,-1
Wheel,41137,550,467,-1
Wheel,42345,550,467,-1
Wheel,42409,550,467,-1
Wheel,43185,550,467,-1
Wheel,43233,550,467,-1
Wheel,43305,550,467,-1
Wheel,43857,550,467,-1
Wheel,43993,550,467,-1
Wheel,44849,550,467,-1
Wheel,45825,550,467,-1
Wheel,45913,550,467,-1
Wheel,46601,550,467,-1
Wheel,47433,550,467,-1
Wheel,48353,550,467,-1
Wheel,48465,550,467,-1
Wheel,48761,550,467,-1
Wheel,48865,550,467,-1
Wheel,49161,550,467,-1
Wheel,49473,550,467,-1
MotionNotify,52065,549,467,0
MotionNotify,52081,548,468,0
MotionNotify,52097,547,468,0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment