SpiceClientGLib.InputsChannel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Guest keyboard lock/led state |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class SpiceClientGLib.InputsChannel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
SpiceClientGLib.InputsChannel
struct is opaque and should not be accessed directly.- button_press(button, button_state)¶
-
Press a mouse button.
New in version 0.35.
- button_release(button, button_state)¶
-
Release a button.
New in version 0.35.
- key_press(scancode)¶
- Parameters:
scancode (
int
) – a PC XT (set 1) key scancode. For scancodes with an \%0xe0 prefix, drop the prefix and OR the scancode with \%0x100.
Press a key.
New in version 0.35.
- key_press_and_release(scancode)¶
- Parameters:
scancode (
int
) – a PC XT (set 1) key scancode. For scancodes with an \%0xe0 prefix, drop the prefix and OR the scancode with \%0x100.
Press and release a key event atomically (in the same message).
New in version 0.35.
- key_release(scancode)¶
- Parameters:
scancode (
int
) – a PC XT (set 1) key scancode. For scancodes with an \%0xe0 prefix, drop the prefix and OR the scancode with \%0x100.
Release a key.
New in version 0.35.
- motion(dx, dy, button_state)¶
- Parameters:
Change mouse position (used in SPICE_MOUSE_MODE_SERVER).
New in version 0.35.
- position(x, y, display, button_state)¶
- Parameters:
Change mouse position (used in SPICE_MOUSE_MODE_CLIENT).
New in version 0.35.
- set_key_locks(locks)¶
- Parameters:
locks (
int
) –SpiceClientGLib.InputsLock
modifiers flags
Set the keyboard locks on the guest (Caps, Num, Scroll..)
New in version 0.35.
Signal Details¶
- SpiceClientGLib.InputsChannel.signals.inputs_modifiers(inputs_channel)¶
- Signal Name:
inputs-modifiers
- Flags:
- Parameters:
inputs_channel (
SpiceClientGLib.InputsChannel
) – The object which received the signal
The
SpiceClientGLib.InputsChannel
::inputs-modifiers
signal is emitted when the guest keyboard locks are changed. You can read the current state fromSpiceClientGLib.InputsChannel
:key-modifiers
property.