VirtualBox

Ignore:
Timestamp:
Mar 1, 2012 11:56:06 AM (13 years ago)
Author:
vboxsync
Message:

Devices/VMMDev and Additions: use a single definition for the value range of the Additions pointer position reporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse.c

    r39811 r40310  
    6363#include "product-generated.h"
    6464
    65 enum
    66 {
    67     /** The minumum value our device can return */
    68     RANGE_MIN = 0,
    69     /** The maximum value our device can return */
    70     RANGE_MAX = 0xFFFF
    71 };
    72 
    7365static void
    7466VBoxReadInput(InputInfoPtr pInfo)
     
    144136                               axis_labels[0],
    145137# endif
    146                                RANGE_MIN /* min X */, RANGE_MAX /* max X */,
     138                               VMMDEV_MOUSE_RANGE_MIN /* min X */, VMMDEV_MOUSE_RANGE_MAX /* max X */,
    147139                               10000, 0, 10000
    148140# if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
     
    155147                               axis_labels[1],
    156148# endif
    157                                RANGE_MIN /* min Y */, RANGE_MAX /* max Y */,
     149                               VMMDEV_MOUSE_RANGE_MIN /* min Y */, VMMDEV_MOUSE_RANGE_MAX /* max Y */,
    158150                               10000, 0, 10000
    159151# if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette