- Timestamp:
- Dec 17, 2009 11:40:11 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56116
- Location:
- trunk/src/VBox/Additions/x11/vboxmouse
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/Makefile.kmk
r25454 r25456 242 242 $$(PATH_vboxmouse_drv_16)/tstvboxmouse16.run: $$(INSTARGET_vboxmouse_drv_16) 243 243 $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET) \ 244 $(INSTARGET_vboxmouse_drv_16) $(OUR_PATH_VBOXMOUSE)/undefined_1 6244 $(INSTARGET_vboxmouse_drv_16) $(OUR_PATH_VBOXMOUSE)/undefined_15 245 245 $(QUIET)$(APPEND) -t "$@" "done" 246 246 -
trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse_15.c
r25079 r25456 74 74 && RT_SUCCESS(VbglR3GetMouseStatus(&fFeatures, &cx, &cy)) 75 75 && (fFeatures & VMMDEV_MOUSE_HOST_CAN_ABSOLUTE)) 76 #if ABI_XINPUT_VERSION == SET_ABI_VERSION(2, 0) 77 /* Bug in the 1.4 X server series - conversion_proc was no longer 78 * called, but the server didn't yet do the conversion itself. */ 79 cx = xf86ScaleAxis(cx, 0, screenInfo.screens[0]->width, 0, 65536); 80 cy = xf86ScaleAxis(cy, 0, screenInfo.screens[0]->height, 0, 65536); 81 #endif 76 82 /* send absolute movement */ 77 83 xf86PostMotionEvent(pInfo->dev, 1, 0, 2, cx, cy); … … 122 128 123 129 /* Tell the server about the range of axis values we report */ 130 #if ABI_XINPUT_VERSION <= SET_ABI_VERSION(2, 0) 131 xf86InitValuatorAxisStruct(device, 0, 0, -1, 1, 0, 1); 132 xf86InitValuatorAxisStruct(device, 1, 0, -1, 1, 0, 1); 133 #else 124 134 xf86InitValuatorAxisStruct(device, 0, 125 # if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7135 # if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 126 136 axis_labels[0], 127 # endif137 # endif 128 138 0 /* min X */, 65536 /* max X */, 129 139 10000, 0, 10000); 130 xf86InitValuatorDefaults(device, 0);131 140 132 141 xf86InitValuatorAxisStruct(device, 1, 133 # if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7142 # if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 134 143 axis_labels[1], 135 # endif144 # endif 136 145 0 /* min Y */, 65536 /* max Y */, 137 146 10000, 0, 10000); 147 #endif 148 xf86InitValuatorDefaults(device, 0); 138 149 xf86InitValuatorDefaults(device, 1); 139 150 xf86MotionHistoryAllocate(pInfo); … … 214 225 } 215 226 216 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 2217 227 static Bool 218 228 VBoxConvert(InputInfoPtr pInfo, int first, int num, int v0, int v1, int v2, … … 226 236 return FALSE; 227 237 } 228 #endif229 238 230 239 static InputInfoPtr … … 244 253 /* Unlike evdev, we set this unconditionally, as we don't handle keyboards. */ 245 254 pInfo->type_name = XI_MOUSE; 246 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 2247 255 pInfo->conversion_proc = VBoxConvert; 248 #endif249 256 pInfo->flags = XI86_POINTER_CAPABLE | XI86_SEND_DRAG_EVENTS | 250 257 XI86_ALWAYS_CORE;
Note:
See TracChangeset
for help on using the changeset viewer.