- if (dgamouse) {
- mouse_x += event.xmotion.x_root/* * in_dga_mouseaccel.value*/;
- mouse_y += event.xmotion.y_root/* * in_dga_mouseaccel.value*/;
- } else {
- if (!p_mouse_x && !p_mouse_y) {
- Con_Printf("event->xmotion.x: %d\n", event.xmotion.x);
- Con_Printf("event->xmotion.y: %d\n", event.xmotion.y);
- }
-/* if (vid_fullscreen.value || _windowed_mouse.value) {*/
- if (!event.xmotion.send_event) {
- mouse_x += (event.xmotion.x - p_mouse_x);
- mouse_y += (event.xmotion.y - p_mouse_y);
- if (abs(vid.width/2 - event.xmotion.x) > vid.width / 4
- || abs(vid.height/2 - event.xmotion.y) > vid.height / 4) {
- dowarp = true;
- }
- }
-/* } else {
- mouse_x += (event.xmotion.x - p_mouse_x);
- mouse_y += (event.xmotion.y - p_mouse_y);
- }*/
- p_mouse_x = event.xmotion.x;
- p_mouse_y = event.xmotion.y;
- }
-
-/* if (mouse_active) {
- if (dgamouse) {
- mouse_x += (event.xmotion.x + win_x) * 2;
- mouse_y += (event.xmotion.y + win_y) * 2;
- }
- else
- {
- mouse_x += ((int)event.xmotion.x - mwx) * 2;
- mouse_y += ((int)event.xmotion.y - mwy) * 2;
- mwx = event.xmotion.x;
- mwy = event.xmotion.y;
-
- if (mouse_x || mouse_y)
- dowarp = true;
+ if (in_dga.value == 1) {
+ mouse_x += event.xmotion.x_root * in_dga_mouseaccel.value;
+ mouse_y += event.xmotion.y_root * in_dga_mouseaccel.value;
+ } else {
+ if (!p_mouse_x && !p_mouse_y) {
+ Con_Printf("event->xmotion.x: %d\n", event.xmotion.x);
+ Con_Printf("event->xmotion.y: %d\n", event.xmotion.y);