Skip to contentSkip to conversation

Merge usb-wacom.c into usb-hid.c + fixes

PATCH New François Revol 1 participant 1 message Jun 28, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Merge usb-wacom.c into usb-hid.c + fixes

Been a while but I still have this pending...

This fixes a number of issues with usb-wacom :
- bad coord scaling, at least with respect to Haiku and Linux drivers,
- bad mouse buttons mapping,
- missing IDLE mode thus forcing polling from the driver.

This makes Haiku usable with VNC with my online demo script
http://dev.haiku-os.org/browser/haiku/trunk/3rdparty/mmu_man/onlinedemo/haiku.php

It also merges the code with usb-hid, as suggested by Paul Brook, and since it's just a tablet with a custom wacom mode, and much of the code was common.

cf.
http://lists.gnu.org/archive/html/qemu-devel/2009-03/msg01296.html
http://lists.gnu.org/archive/html/qemu-devel/2009-03/msg01596.html
http://lists.gnu.org/archive/html/qemu-devel/2009-04/msg01837.html

François.

---
 Makefile       |    2 +-
 hw/usb-hid.c   |  322 +++++++++++++++++++++++++++++++++++---------
 hw/usb-wacom.c |  412 --------------------------------------------------------
 3 files changed, 260 insertions(+), 476 deletions(-)
Makefile +1 -1
index a06c9bf..5e885bc 100644
@@ -102,7 +102,7 @@ OBJS+=ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o
 OBJS+=tmp105.o lm832x.o eeprom93xx.o tsc2005.o
 OBJS+=scsi-disk.o cdrom.o
 OBJS+=scsi-generic.o
-OBJS+=usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
+OBJS+=usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o
 OBJS+=usb-serial.o usb-net.o
 OBJS+=sd.o ssi-sd.o
 OBJS+=bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
hw/usb-hid.c +259 -63

485 lines not on this page · raw message

hw/usb-wacom.c deleted +0 -412

412 lines not on this page · raw message

Signature · 1 line
1.4.4.4