mirror of
https://github.com/brl/mutter.git
synced 2025-04-13 13:49:38 +00:00
docs: Update to show the symbolic button names
https://bugzilla.gnome.org/show_bug.cgi?id=668692
This commit is contained in:
parent
12a79a66d8
commit
54c9257f28
@ -1274,16 +1274,22 @@ g_object_set (settings,
|
|||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>1 = left mouse button</para>
|
<para>1 = left mouse button in a right-handed configuration,
|
||||||
|
or the right mouse button in a left-handed configuration</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2 = scroll wheel</para>
|
<para>2 = scroll wheel button</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>3 = right mouse button</para>
|
<para>3 = right mouse button in a right-handed configuration,
|
||||||
|
or the left mouse button in a left-handed configuration</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
||||||
|
<note><para>Clutter provides symbolic names for the three buttons
|
||||||
|
above: CLUTTER_BUTTON_PRIMARY, CLUTTER_BUTTON_MIDDLE, and
|
||||||
|
CLUTTER_BUTTON_SECONDARY.</para></note>
|
||||||
|
|
||||||
<para>For mice with more buttons, or other types of
|
<para>For mice with more buttons, or other types of
|
||||||
input devices, the mappings may not be so
|
input devices, the mappings may not be so
|
||||||
straightforward: you may have to experiment to see
|
straightforward: you may have to experiment to see
|
||||||
|
@ -55,9 +55,9 @@ clicked_cb (ClutterActor *actor,
|
|||||||
|
|
||||||
clutter_actor_get_scale (actor, &scale, NULL);
|
clutter_actor_get_scale (actor, &scale, NULL);
|
||||||
|
|
||||||
if (button == 1)
|
if (button == CLUTTER_BUTTON_PRIMARY)
|
||||||
scale *= 1.2;
|
scale *= 1.2;
|
||||||
else if (button == 3)
|
else if (button == CLUTTER_BUTTON_SECONDARY)
|
||||||
scale /= 1.2;
|
scale /= 1.2;
|
||||||
|
|
||||||
/* don't do anything if scale is outside bounds */
|
/* don't do anything if scale is outside bounds */
|
||||||
|
@ -1107,6 +1107,9 @@ clutter_event_put
|
|||||||
clutter_events_pending
|
clutter_events_pending
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
|
CLUTTER_BUTTON_PRIMARY
|
||||||
|
CLUTTER_BUTTON_MIDDLE
|
||||||
|
CLUTTER_BUTTON_SECONDARY
|
||||||
clutter_event_set_button
|
clutter_event_set_button
|
||||||
clutter_event_get_button
|
clutter_event_get_button
|
||||||
clutter_event_get_click_count
|
clutter_event_get_click_count
|
||||||
|
Loading…
x
Reference in New Issue
Block a user