org.virtualbox_5_1
Class IKeyboard
java.lang.Object
org.virtualbox_5_1.IUnknown
org.virtualbox_5_1.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: {DA91D4C9-4C02-FDB1-C5AC-D89E22E81302}
Constructor Summary |
IKeyboard(java.lang.String wrapped,
org.virtualbox_5_1.ObjectRefManager objMgr,
org.virtualbox_5_1.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_5_1.ObjectRefManager objMgr,
org.virtualbox_5_1.jaxws.VboxPortType port)
getKeyboardLEDs
public java.util.List<KeyboardLED> getKeyboardLEDs()
- Current status of the guest keyboard LEDs.
- Returns:
- List<org.virtualbox_5_1.KeyboardLED>
getEventSource
public IEventSource getEventSource()
- Event source for keyboard events.
- Returns:
- org.virtualbox_5_1.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:
@link ::VBOX_E_IPRT_ERROR 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:
@link ::VBOX_E_IPRT_ERROR 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:
@link ::VBOX_E_IPRT_ERROR 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:
@link ::VBOX_E_IPRT_ERROR VBOX_E_IPRT_ERROR | Could not release some or all keys. |