public class IKeyboard extends IUnknown
IConsole.getKeyboard()
.
Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
to the virtual machine.
Interface ID: {755E6BDF-1640-41F9-BD74-3EF5FD653250}
Constructor and Description |
---|
IKeyboard(java.lang.String wrapped,
org.virtualbox_7_0.ObjectRefManager objMgr,
org.virtualbox_7_0.jaxws.VboxPortType port) |
Modifier and Type | Method and Description |
---|---|
IEventSource |
getEventSource()
Event source for keyboard events.
|
java.util.List<KeyboardLED> |
getKeyboardLEDs()
Current status of the guest keyboard LEDs.
|
void |
putCAD()
Sends the Ctrl-Alt-Del sequence to the keyboard.
|
void |
putScancode(java.lang.Integer scancode)
Sends a scancode to the keyboard.
|
java.lang.Long |
putScancodes(java.util.List<java.lang.Integer> scancodes)
Sends an array of scancodes to the keyboard.
|
void |
putUsageCode(java.lang.Integer usageCode,
java.lang.Integer usagePage,
java.lang.Boolean keyRelease)
Sends a USB HID usage code and page to the keyboard.
|
static IKeyboard |
queryInterface(IUnknown obj) |
void |
releaseKeys()
Causes the virtual keyboard to release any keys which are
currently pressed.
|
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
public IKeyboard(java.lang.String wrapped, org.virtualbox_7_0.ObjectRefManager objMgr, org.virtualbox_7_0.jaxws.VboxPortType port)
public java.util.List<KeyboardLED> getKeyboardLEDs()
public IEventSource getEventSource()
public void putScancode(java.lang.Integer scancode)
VBOX_E_IPRT_ERROR
- Could not send scan code to virtual keyboard.public java.lang.Long putScancodes(java.util.List<java.lang.Integer> scancodes)
VBOX_E_IPRT_ERROR
- Could not send all scan codes to virtual keyboard.public void putCAD()
putScancodes(List)
with the proper scancodes.
VBOX_E_IPRT_ERROR
- Could not send all scan codes to virtual keyboard.public void releaseKeys()
VBOX_E_IPRT_ERROR
- Could not release some or all keys.public void putUsageCode(java.lang.Integer usageCode, java.lang.Integer usagePage, java.lang.Boolean keyRelease)
VBOX_E_IPRT_ERROR
- Could not send usage code to virtual keyboard.