VirtualBox

Changeset 34012 in vbox


Ignore:
Timestamp:
Nov 11, 2010 8:35:42 PM (14 years ago)
Author:
vboxsync
Message:

Main: keyboard events now work with RDP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/KeyboardImpl.cpp

    r33061 r34012  
    185185                      scancode, vrc);
    186186
     187    VBoxEventDesc evDesc;
     188    com::SafeArray<LONG> scancodes(1);
     189    scancodes[0] = scancode;
     190    evDesc.init(mEventSource, VBoxEventType_OnGuestKeyboardEvent, ComSafeArrayAsInParam(scancodes));
     191    evDesc.fire(0);
    187192    return rc;
    188193}
     
    243248    if (codesStored)
    244249        *codesStored = (uint32_t)keys.size();
    245 #if 1
     250
    246251    VBoxEventDesc evDesc;
    247     evDesc.init(mEventSource, VBoxEventType_OnGuestKeyboardEvent,
    248 #ifdef RT_OS_WINDOWS
    249                 scancodes
    250 #else
    251                 scancodesSize, scancodes
    252 #endif
    253                 );
     252    evDesc.init(mEventSource, VBoxEventType_OnGuestKeyboardEvent, ComSafeArrayAsInParam(keys));
    254253    evDesc.fire(0);
    255 #endif
    256254
    257255    return rc;
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