Top | ![]() |
![]() |
![]() |
![]() |
void | spice_inputs_motion () |
void | spice_inputs_channel_motion () |
void | spice_inputs_position () |
void | spice_inputs_channel_position () |
void | spice_inputs_button_press () |
void | spice_inputs_channel_button_press () |
void | spice_inputs_button_release () |
void | spice_inputs_channel_button_release () |
void | spice_inputs_key_press () |
void | spice_inputs_channel_key_press () |
void | spice_inputs_key_press_and_release () |
void | spice_inputs_channel_key_press_and_release () |
void | spice_inputs_key_release () |
void | spice_inputs_channel_key_release () |
void | spice_inputs_set_key_locks () |
void | spice_inputs_channel_set_key_locks () |
Spice supports sending keyboard key events and keyboard leds
synchronization. The key events are sent using
spice_inputs_key_press()
and spice_inputs_key_release()
using
a modified variant of PC XT scancodes.
Guest keyboard leds state can be manipulated with
spice_inputs_set_key_locks()
. When key lock change, a notification
is emitted with “inputs-modifiers” signal.
void spice_inputs_motion (SpiceInputsChannel *channel
,gint dx
,gint dy
,gint button_state
);
spice_inputs_motion
has been deprecated since version 0.35 and should not be used in newly-written code.
use spice_inputs_channel_motion()
instead.
Change mouse position (used in SPICE_MOUSE_MODE_SERVER).
void spice_inputs_channel_motion (SpiceInputsChannel *channel
,gint dx
,gint dy
,gint button_state
);
Change mouse position (used in SPICE_MOUSE_MODE_SERVER).
channel |
||
dx |
delta X mouse coordinates |
|
dy |
delta Y mouse coordinates |
|
button_state |
SPICE_MOUSE_BUTTON_MASK flags |
Since: 0.35
void spice_inputs_position (SpiceInputsChannel *channel
,gint x
,gint y
,gint display
,gint button_state
);
spice_inputs_position
has been deprecated since version 0.35 and should not be used in newly-written code.
use spice_inputs_channel_position()
instead.
Change mouse position (used in SPICE_MOUSE_MODE_CLIENT).
void spice_inputs_channel_position (SpiceInputsChannel *channel
,gint x
,gint y
,gint display
,gint button_state
);
Change mouse position (used in SPICE_MOUSE_MODE_CLIENT).
channel |
||
x |
X mouse coordinates |
|
y |
Y mouse coordinates |
|
display |
display channel id |
|
button_state |
SPICE_MOUSE_BUTTON_MASK flags |
Since: 0.35
void spice_inputs_button_press (SpiceInputsChannel *channel
,gint button
,gint button_state
);
spice_inputs_button_press
has been deprecated since version 0.35 and should not be used in newly-written code.
use spice_inputs_channel_button_press()
instead.
Press a mouse button.
void spice_inputs_channel_button_press (SpiceInputsChannel *channel
,gint button
,gint button_state
);
Press a mouse button.
Since: 0.35
void spice_inputs_button_release (SpiceInputsChannel *channel
,gint button
,gint button_state
);
spice_inputs_button_release
has been deprecated since version 0.35 and should not be used in newly-written code.
use spice_inputs_channel_button_release()
instead.
Release a button.
void spice_inputs_channel_button_release (SpiceInputsChannel *channel
,gint button
,gint button_state
);
Release a button.
Since: 0.35
void spice_inputs_key_press (SpiceInputsChannel *channel
,guint scancode
);
spice_inputs_key_press
has been deprecated since version 0.35 and should not be used in newly-written code.
use spice_inputs_channel_key_press()
instead.
Press a key.
void spice_inputs_channel_key_press (SpiceInputsChannel *channel
,guint scancode
);
Press a key.
channel |
||
scancode |
a PC XT (set 1) key scancode. For scancodes with an %0xe0 prefix, drop the prefix and OR the scancode with %0x100. |
Since: 0.35
void spice_inputs_key_press_and_release (SpiceInputsChannel *channel
,guint scancode
);
spice_inputs_key_press_and_release
has been deprecated since version 0.35 and should not be used in newly-written code.
Press and release a key event atomically (in the same message).
channel |
||
scancode |
a PC XT (set 1) key scancode. For scancodes with an %0xe0 prefix, drop the prefix and OR the scancode with %0x100. |
Since: 0.13
void spice_inputs_channel_key_press_and_release (SpiceInputsChannel *channel
,guint scancode
);
Press and release a key event atomically (in the same message).
channel |
||
scancode |
a PC XT (set 1) key scancode. For scancodes with an %0xe0 prefix, drop the prefix and OR the scancode with %0x100. |
Since: 0.35
void spice_inputs_key_release (SpiceInputsChannel *channel
,guint scancode
);
spice_inputs_key_release
has been deprecated since version 0.35 and should not be used in newly-written code.
use spice_inputs_channel_key_release()
instead.
Release a key.
void spice_inputs_channel_key_release (SpiceInputsChannel *channel
,guint scancode
);
Release a key.
channel |
||
scancode |
a PC XT (set 1) key scancode. For scancodes with an %0xe0 prefix, drop the prefix and OR the scancode with %0x100. |
Since: 0.35
void spice_inputs_set_key_locks (SpiceInputsChannel *channel
,guint locks
);
spice_inputs_set_key_locks
has been deprecated since version 0.35 and should not be used in newly-written code.
use spice_inputs_channel_set_key_locks()
instead.
Set the keyboard locks on the guest (Caps, Num, Scroll..)
void spice_inputs_channel_set_key_locks (SpiceInputsChannel *channel
,guint locks
);
Set the keyboard locks on the guest (Caps, Num, Scroll..)
Since: 0.35
struct SpiceInputsChannel;
The SpiceInputsChannel struct is opaque and should not be accessed directly.
struct SpiceInputsChannelClass { SpiceChannelClass parent_class; /* signals */ void (*inputs_modifiers)(SpiceChannel *channel); };
Class structure for SpiceInputsChannel.
“inputs-modifiers”
signalvoid user_function (SpiceInputsChannel *display, gpointer user_data)
The “inputs-modifiers” signal is emitted when the guest keyboard locks are changed. You can read the current state from “key-modifiers” property.
display |
the SpiceInputsChannel that emitted the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First