VirtualBox

Changeset 40310 in vbox for trunk/src/VBox/Additions/common


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/common/VBoxGuest/VBoxGuest-linux.c

    r39353 r40310  
    390390
    391391
    392 enum
    393 {
    394     /** The minumum value our device can return */
    395     RANGE_MIN = 0,
    396     /** The maximum value our device can return */
    397     RANGE_MAX = 0xFFFF
    398 };
    399 
    400 
    401392#ifdef VBOXGUEST_WITH_INPUT_DRIVER
    402393/** Calls the kernel IOCtl to report mouse status to the host on behalf of
     
    476467    ASMBitSet(g_pInputDevice->evbit, EV_SYN);
    477468# endif
    478     input_set_abs_params(g_pInputDevice, ABS_X, RANGE_MIN, RANGE_MAX, 0, 0);
    479     input_set_abs_params(g_pInputDevice, ABS_Y, RANGE_MIN, RANGE_MAX, 0, 0);
     469    input_set_abs_params(g_pInputDevice, ABS_X, VMMDEV_MOUSE_RANGE_MIN,
     470                         VMMDEV_MOUSE_RANGE_MAX, 0, 0);
     471    input_set_abs_params(g_pInputDevice, ABS_Y, VMMDEV_MOUSE_RANGE_MIN,
     472                         VMMDEV_MOUSE_RANGE_MAX, 0, 0);
    480473    ASMBitSet(g_pInputDevice->keybit, BTN_MOUSE);
    481474    /** @todo this string should be in a header file somewhere. */
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