mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
libratbag: drop everything related to simple key action modifiers
Macros can be used for that instead, drivers can adapt them as needed. Simple key actions will stay here for now, but I plan to completely replace them with macros eventually.
This commit is contained in:
@@ -143,10 +143,8 @@ char *
|
||||
button_action_key_to_str(struct ratbag_button *button)
|
||||
{
|
||||
const char *str;
|
||||
unsigned int modifiers[10];
|
||||
size_t m_size = 10;
|
||||
|
||||
str = libevdev_event_code_get_name(EV_KEY, ratbag_button_get_key(button, modifiers, &m_size));
|
||||
str = libevdev_event_code_get_name(EV_KEY, ratbag_button_get_key(button));
|
||||
if (!str)
|
||||
str = "UNKNOWN";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user