shithub: patch

ref: 5a3ea1545e998ea9665d809650207b0ae3b2d9c8
dir: /nusb-kb-rotate/

View raw version
diff 62253b9d1720fb3ce962a5a6b2bdf5588267be8a uncommitted
--- a//sys/src/cmd/nusb/kb/kb.c
+++ b//sys/src/cmd/nusb/kb/kb.c
@@ -867,8 +867,13 @@
 				if(s->abs == l->abs && s->x == l->x && s->y == l->y && s->b == l->b)
 					continue;
 				abs = 1;
-				x = s->x;
-				y = s->y;
+				if(f->dev->usb->vid == 0x28bd && f->dev->usb->did == 0x0920){
+					x = s->y;
+					y = 0x80000000UL - s->x;
+				}else{
+					x = s->x;
+					y = s->y;
+				}
 			} else {
 				/* everything needs to be relative */
 				if((s->abs & 3) != 0 || abs)