mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
action: add ToggleTabletMouseEmulation
Useful for switching between application-defined and mapped tablet pad buttons. Also for quickly troubleshooting tablet behavior.
This commit is contained in:
parent
1dadb12807
commit
b63c6a0fc2
3 changed files with 11 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ enum action_type {
|
|||
ACTION_TYPE_SHADE,
|
||||
ACTION_TYPE_UNSHADE,
|
||||
ACTION_TYPE_TOGGLE_SHADE,
|
||||
ACTION_TYPE_TOGGLE_TABLET_MOUSE_EMULATION,
|
||||
ACTION_TYPE_TOGGLE_MAGNIFY,
|
||||
ACTION_TYPE_ZOOM_IN,
|
||||
ACTION_TYPE_ZOOM_OUT
|
||||
|
|
@ -172,6 +173,7 @@ const char *action_names[] = {
|
|||
"Shade",
|
||||
"Unshade",
|
||||
"ToggleShade",
|
||||
"ToggleTabletMouseEmulation",
|
||||
"ToggleMagnify",
|
||||
"ZoomIn",
|
||||
"ZoomOut",
|
||||
|
|
@ -1111,6 +1113,9 @@ actions_run(struct view *activator, struct server *server,
|
|||
view_set_shade(view, false);
|
||||
}
|
||||
break;
|
||||
case ACTION_TYPE_TOGGLE_TABLET_MOUSE_EMULATION:
|
||||
rc.tablet.force_mouse_emulation = !rc.tablet.force_mouse_emulation;
|
||||
break;
|
||||
case ACTION_TYPE_TOGGLE_MAGNIFY:
|
||||
magnify_toggle(server);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue