forked from drath/libratbag
tools: dump the action mapped to the buttons
The buttons are given as plain numbers, not sure if we should use BTN_LEFT, BTN_RIGHT, etc instead. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -752,6 +752,12 @@ ratbag_button_get_type(struct ratbag_button *button)
|
||||
return button->type;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT enum ratbag_button_action_type
|
||||
ratbag_button_get_action_type(struct ratbag_button *button)
|
||||
{
|
||||
return button->action.type;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT unsigned int
|
||||
ratbag_button_get_button(struct ratbag_button *button)
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@ LIBRATBAG_0.1.0 {
|
||||
global:
|
||||
ratbag_create_context;
|
||||
ratbag_button_ref;
|
||||
ratbag_button_get_action_type;
|
||||
ratbag_button_get_type;
|
||||
ratbag_button_get_button;
|
||||
ratbag_button_get_key;
|
||||
|
||||
Reference in New Issue
Block a user