Changeset 38274 in vbox
- Timestamp:
- Aug 2, 2011 10:14:57 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse_15.c
r38273 r38274 59 59 #include "product-generated.h" 60 60 61 enum 62 { 63 #if ABI_XINPUT_VERSION > SET_ABI_VERSION(2, 0) 64 /* The X server does (to my mind) incorrect rounding, so we adjust our range to 65 * compensate. */ 66 ADJUST_RANGE = 32, 67 #else 68 ADJUST_RANGE = 0, 69 #endif 70 /** The minumum value our device can return */ 71 RANGE_MIN = ADJUST_RANGE, 72 /** The maximum value our device can return */ 73 RANGE_MAX = 0xFFFF + ADJUST_RANGE 74 }; 75 61 76 static void 62 77 VBoxReadInput(InputInfoPtr pInfo) … … 132 147 axis_labels[0], 133 148 # endif 134 /* The X server does (to my mind) incorrect rounding, hence the strange values. 135 */ 136 -32 /* min X */, 65503 /* max X */, 149 RANGE_MIN /* min X */, RANGE_MAX /* max X */, 137 150 10000, 0, 10000 138 151 # if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 … … 145 158 axis_labels[1], 146 159 # endif 147 /* The X server does (to my mind) incorrect rounding, hence the strange values. 148 */ 149 -32 /* min Y */, 65503 /* max Y */, 160 RANGE_MIN /* min Y */, RANGE_MAX /* max Y */, 150 161 10000, 0, 10000 151 162 # if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
Note:
See TracChangeset
for help on using the changeset viewer.