backends: Implement the "show osd" pad action

Just call back into meta_display_request_show_osd().
This commit is contained in:
Carlos Garnacho 2016-06-29 13:52:52 +02:00
parent 76595af8af
commit 5effde59f6

View File

@ -1559,8 +1559,11 @@ meta_input_settings_handle_pad_button (MetaInputSettings *input_settings,
if (is_press)
meta_input_settings_cycle_tablet_output (input_settings, pad);
return TRUE;
case G_DESKTOP_PAD_BUTTON_ACTION_KEYBINDING:
case G_DESKTOP_PAD_BUTTON_ACTION_HELP:
if (is_press)
meta_display_request_pad_osd (meta_get_display (), pad, FALSE);
return TRUE;
case G_DESKTOP_PAD_BUTTON_ACTION_KEYBINDING:
case G_DESKTOP_PAD_BUTTON_ACTION_NONE:
default:
return FALSE;