Changeset 22589 in vbox
- Timestamp:
- Aug 31, 2009 9:31:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse_15.c
r22094 r22589 81 81 82 82 pInfo = device->public.devicePrivate; 83 Atom axis_labels[2] = { 0, 0 }; 84 Atom button_labels[2] = { 0, 0 }; 83 85 84 86 if (!InitValuatorClassDeviceStruct(device, 2, 85 87 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3 86 88 GetMotionHistory, 89 #elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 90 axis_labels, 87 91 #endif 88 92 GetMotionHistorySize(), Absolute)) … … 90 94 91 95 /* Pretend we have buttons so the server accepts us as a pointing device. */ 92 if (!InitButtonClassDeviceStruct(device, 2 /* number of buttons */, map)) 96 if (!InitButtonClassDeviceStruct(device, 2, /* number of buttons */ 97 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 98 button_labels, 99 #endif 100 map)) 93 101 return !Success; 94 102 95 103 /* Tell the server about the range of axis values we report */ 96 xf86InitValuatorAxisStruct(device, 0, 0 /* min X */, 65536 /* max X */, 104 xf86InitValuatorAxisStruct(device, 0, 105 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 106 axis_labels[0], 107 #endif 108 0 /* min X */, 65536 /* max X */, 97 109 10000, 0, 10000); 98 110 xf86InitValuatorDefaults(device, 0); 99 111 100 xf86InitValuatorAxisStruct(device, 1, 0 /* min Y */, 65536 /* max Y */, 112 xf86InitValuatorAxisStruct(device, 1, 113 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 114 axis_labels[1], 115 #endif 116 0 /* min Y */, 65536 /* max Y */, 101 117 10000, 0, 10000); 102 118 xf86InitValuatorDefaults(device, 1);
Note:
See TracChangeset
for help on using the changeset viewer.