org.virtualbox_6_0
Class IKeyboard
java.lang.Object
org.virtualbox_6_0.IUnknown
org.virtualbox_6_0.IKeyboard
public class IKeyboard
- extends IUnknown
The IKeyboard interface represents the virtual machine's keyboard. Used
inIConsole.getKeyboard()
.
Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
to the virtual machine.
Interface ID: {A7C88B82-2330-44E3-B247-1421A018F9C1}
Constructor Summary |
IKeyboard(java.lang.String wrapped,
org.virtualbox_6_0.ObjectRefManager objMgr,
org.virtualbox_6_0.jaxws.VboxPortType port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IKeyboard
public IKeyboard(java.lang.String wrapped,
org.virtualbox_6_0.ObjectRefManager objMgr,
org.virtualbox_6_0.jaxws.VboxPortType port)
getKeyboardLEDs
public java.util.List<KeyboardLED> getKeyboardLEDs()
- Current status of the guest keyboard LEDs.
- Returns:
- List<org.virtualbox_6_0.KeyboardLED>
getEventSource
public IEventSource getEventSource()
- Event source for keyboard events.
- Returns:
- org.virtualbox_6_0.IEventSource
queryInterface
public static IKeyboard queryInterface(IUnknown obj)
putScancode
public void putScancode(java.lang.Integer scancode)
- Sends a scancode to the keyboard.
Expected result codes:
VBOX_E_IPRT_ERROR | Could not send scan code to virtual keyboard. |
putScancodes
public java.lang.Long putScancodes(java.util.List<java.lang.Integer> scancodes)
- Sends an array of scancodes to the keyboard.
Expected result codes:
VBOX_E_IPRT_ERROR | Could not send all scan codes to virtual keyboard. |
putCAD
public void putCAD()
- Sends the Ctrl-Alt-Del sequence to the keyboard. This
function is nothing special, it is just a convenience function
calling
putScancodes(List)
with the proper scancodes.
Expected result codes:
VBOX_E_IPRT_ERROR | Could not send all scan codes to virtual keyboard. |
releaseKeys
public void releaseKeys()
- Causes the virtual keyboard to release any keys which are
currently pressed. Useful when host and guest keyboard may be out
of sync.
Expected result codes:
VBOX_E_IPRT_ERROR | Could not release some or all keys. |