add reported acpi events for several button/... events not handled yet

devs/sachiel/e19
Carsten Haitzler 10 years ago
parent 4d68c30127
commit c65e2cb4c7
  1. 3
      src/bin/e_acpi.c
  2. 5
      src/bin/e_acpi.h
  3. 6
      src/modules/conf_bindings/e_int_config_acpibindings.c

@ -73,6 +73,9 @@ static E_ACPI_Device_Simple _devices_simple[] =
{"video/brightnessdown", E_ACPI_TYPE_BRIGHTNESS_DOWN},
{"video/brightnessup", E_ACPI_TYPE_BRIGHTNESS_UP},
{"video/switchmode", E_ACPI_TYPE_VIDEO},
{"button/zoom", E_ACPI_TYPE_ZOOM},
{"button/screenlock", E_ACPI_TYPE_SCREENLOCK},
{"button/battery", E_ACPI_TYPE_BATTERY_BUTTON},
{NULL, E_ACPI_TYPE_UNKNOWN}
};

@ -30,7 +30,10 @@ typedef enum _E_Acpi_Type
E_ACPI_TYPE_VOLUME_DOWN, // 23
E_ACPI_TYPE_VOLUME_UP, // 24
E_ACPI_TYPE_TABLET_ON, // 25
E_ACPI_TYPE_TABLET_OFF // 26
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;
/* enum for acpi signals */

@ -399,6 +399,12 @@ _binding_label_get(E_Config_Binding_Acpi *binding)
return _("Tablet On");
if (binding->type == E_ACPI_TYPE_TABLET_OFF)
return _("Tablet Off");
if (binding->type == E_ACPI_TYPE_ZOOM)
return _("Zoom");
if (binding->type == E_ACPI_TYPE_SCREENLOCK)
return _("Screenlock");
if (binding->type == E_ACPI_TYPE_BATTERY_BUTTON)
return _("Battery Button");
return _("Unknown");
}

Loading…
Cancel
Save