VirtualBox

Changes between Version 1 and Version 2 of KeyboardInput


Ignore:
Timestamp:
May 11, 2018 3:12:02 PM (6 years ago)
Author:
Michael Thayer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • KeyboardInput

    v1 v2  
    66
    77The code which picks up keyboard events from the host for the default user interface it in the files:
    8 
     8{{{
    99src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
    1010src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
    11 
     11}}}
    1212Unfortunately there is no logging available here.  The code to read the keyboard is different for Windows, X11 and OS X.
    1313
    1414After this, the events are passed on to Main, which is the middle-layer between front-ends and virtual machines.
    15 
     15{{{
    1616src/VBox/Main/src-client/KeyboardImpl.cpp
    17 
     17}}}
    1818Main takes care of things which otherwise all front-ends would have to do (not much for the keyboard), then passes the events on to the device emulation code.  The path here will be different depending on whether we are using PS/2 keyboard emulation (almost always) or USB keyboard.  The device emulation makes the events appear on the guest virtual hardware.
    19 
     19{{{
    2020src/VBox/Devices/Input/
    21 
     21}}}
    2222There is logging<2> code here, respectively log group "dev_kbd" and "usb_kbd"
    2323

© 2023 Oracle
ContactPrivacy policyTerms of Use