VirtualBox

Changeset 38722 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 13, 2011 7:07:14 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73985
Message:

Additions/common/VBoxGuest: Linux input devices: a clean up and a fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c

    r38721 r38722  
    3030#include <linux/miscdevice.h>
    3131#include <linux/poll.h>
    32 #include "version-generated.h"
    33 #include "product-generated.h"
     32#include <VBox/version.h>
    3433
    3534#include <iprt/assert.h>
     
    444443    g_pInputDevice->INPUT_DEV_ID(vendor)  = VMMDEV_VENDORID;
    445444    g_pInputDevice->INPUT_DEV_ID(product) = VMMDEV_DEVICEID;
    446     g_pInputDevice->INPUT_DEV_ID(version) =   (VBOX_VERSION_MAJOR << 11)
    447                                             + (VBOX_VERSION_MINOR << 6)
    448                                             + VBOX_VERSION_BUILD;  /** @todo */
     445    g_pInputDevice->INPUT_DEV_ID(version) = VBOX_SHORT_VERSION;
    449446    g_pInputDevice->open                  = vboxguestOpenInputDevice;
    450447    g_pInputDevice->close                 = vboxguestCloseInputDevice;
     
    482479    ASMBitSet(g_pInputDevice->absbit, ABS_X);
    483480    ASMBitSet(g_pInputDevice->absbit, ABS_Y);
    484     ASMBitSet(g_pInputDevice->keybit, BTN_MOUSE);
    485481    g_pInputDevice->absmin[ABS_X] = g_pInputDevice->absmin[ABS_Y] = RANGE_MIN;
    486482    g_pInputDevice->absmax[ABS_X] = g_pInputDevice->absmax[ABS_Y] = RANGE_MAX;
    487483#endif
     484    ASMBitSet(g_pInputDevice->keybit, BTN_MOUSE);
    488485    /** @todo this string should be in a header file somewhere. */
    489486    g_pInputDevice->name = "VirtualBox mouse integration";
Note: See TracChangeset for help on using the changeset viewer.

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