add simple tablet acpi button event.

devs/sachiel/e19
Carsten Haitzler 10 years ago
parent 2f2df6346c
commit c7694a9e6a
  1. 1
      src/bin/e_acpi.c
  2. 3
      src/bin/e_acpi.h
  3. 12
      src/modules/conf_bindings/e_int_config_acpibindings.c

@ -76,6 +76,7 @@ static E_ACPI_Device_Simple _devices_simple[] =
{"button/zoom", E_ACPI_TYPE_ZOOM},
{"button/screenlock", E_ACPI_TYPE_SCREENLOCK},
{"button/battery", E_ACPI_TYPE_BATTERY_BUTTON},
{"video/tabletmode", E_ACPI_TYPE_TABLET},
{NULL, E_ACPI_TYPE_UNKNOWN}
};

@ -33,7 +33,8 @@ typedef enum _E_Acpi_Type
E_ACPI_TYPE_TABLET_OFF, // 26
E_ACPI_TYPE_ZOOM, // 27
E_ACPI_TYPE_SCREENLOCK, // 28
E_ACPI_TYPE_BATTERY_BUTTON // 29
E_ACPI_TYPE_BATTERY_BUTTON, // 29
E_ACPI_TYPE_TABLET // 30
} E_Acpi_Type;
/* enum for acpi signals */

@ -391,6 +391,12 @@ _binding_label_get(E_Config_Binding_Acpi *binding)
return _("S1");
if (binding->type == E_ACPI_TYPE_VAIO)
return _("Vaio");
if (binding->type == E_ACPI_TYPE_MUTE)
return _("Mute");
if (binding->type == E_ACPI_TYPE_VOLUME)
return _("Volume");
if (binding->type == E_ACPI_TYPE_BRIGHTNESS)
return _("Brightness");
if (binding->type == E_ACPI_TYPE_VOLUME_DOWN)
return _("Volume Down");
if (binding->type == E_ACPI_TYPE_VOLUME_UP)
@ -405,6 +411,12 @@ _binding_label_get(E_Config_Binding_Acpi *binding)
return _("Screenlock");
if (binding->type == E_ACPI_TYPE_BATTERY_BUTTON)
return _("Battery Button");
if (binding->type == E_ACPI_TYPE_TABLET)
{
if (binding->status == 0) return _("Tablet Enabled");
if (binding->status == 1) return _("Tablet Disabled");
return _("Tablet");
}
return _("Unknown");
}

Loading…
Cancel
Save