e_acpi: add support for bluetooth remote controls

bluetooth remote controls are for example bt headsets with play / pause
/ next / prev interactions.
devs/bu5hm4n/netstart_fixes
Marcel Hollerbach 2 years ago
parent 0e0cf36a32
commit 124113ad64
  1. 6
      src/bin/e_acpi.c
  2. 6
      src/bin/e_acpi.h
  3. 8
      src/modules/conf_bindings/e_int_config_acpibindings.c

@ -79,6 +79,12 @@ static E_ACPI_Device_Simple _devices_simple[] =
{"button/battery", E_ACPI_TYPE_BATTERY_BUTTON},
{"video/tabletmode", E_ACPI_TYPE_TABLET},
//bluetooth virtual input devices for A/V Remote Control
{"cd/next", E_ACPI_TYPE_CD_NEXT},
{"cd/prev", E_ACPI_TYPE_CD_PREV},
{"cd/stop", E_ACPI_TYPE_CD_STOP},
{"cd/play", E_ACPI_TYPE_CD_PLAY},
{NULL, E_ACPI_TYPE_UNKNOWN}
};

@ -34,7 +34,11 @@ typedef enum _E_Acpi_Type
E_ACPI_TYPE_ZOOM, // 27
E_ACPI_TYPE_SCREENLOCK, // 28
E_ACPI_TYPE_BATTERY_BUTTON, // 29
E_ACPI_TYPE_TABLET // 30
E_ACPI_TYPE_TABLET, // 30
E_ACPI_TYPE_CD_NEXT, // 31
E_ACPI_TYPE_CD_PREV, // 32
E_ACPI_TYPE_CD_PLAY, // 33
E_ACPI_TYPE_CD_STOP, // 34
} E_Acpi_Type;
/* enum for acpi signals */

@ -417,6 +417,14 @@ _binding_label_get(E_Config_Binding_Acpi *binding)
if (binding->status == 1) return _("Tablet Enabled");
return _("Tablet");
}
if (binding->type == E_ACPI_TYPE_CD_NEXT)
return _("Next Media");
if (binding->type == E_ACPI_TYPE_CD_PREV)
return _("Prev Media");
if (binding->type == E_ACPI_TYPE_CD_STOP)
return _("Stop Media");
if (binding->type == E_ACPI_TYPE_CD_PLAY)
return _("Play Media");
return _("Unknown");
}

Loading…
Cancel
Save