VirtualBox

Changes between Initial Version and Version 1 of KeyboardInput


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

--

Legend:

Unmodified
Added
Removed
Modified
  • KeyboardInput

    v1 v1  
     1Feedback about this page and suggestions for improvements are always welcome on the vbox-dev mailing list<1>!
     2
     3 1. https://www.virtualbox.org/mailman/listinfo/vbox-dev
     4
     5= Investigating problems with keyboard input in !VirtualBox =
     6
     7The code which picks up keyboard events from the host for the default user interface it in the files:
     8
     9src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
     10src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
     11
     12Unfortunately there is no logging available here.  The code to read the keyboard is different for Windows, X11 and OS X.
     13
     14After this, the events are passed on to Main, which is the middle-layer between front-ends and virtual machines.
     15
     16src/VBox/Main/src-client/KeyboardImpl.cpp
     17
     18Main 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
     20src/VBox/Devices/Input/
     21
     22There is logging<2> code here, respectively log group "dev_kbd" and "usb_kbd"
     23
     242. wiki:VBoxLogging
     25
     26To monitor exactly what the guest is seeing you are best using native tools in the guest operating system, such as evtest, xinput and xev in Linux/X11 guests and keylook<3> in Windows guests.
     27
     283. https://superuser.com/questions/348070/equivalent-for-xev-on-windows

© 2023 Oracle
ContactPrivacy policyTerms of Use