mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
config: add tablet button mapping configuration
Co-authored-by: Consolatis <35009135+Consolatis@users.noreply.github.com>
This commit is contained in:
parent
f0b72e3af7
commit
567b81ea10
6 changed files with 128 additions and 0 deletions
18
include/config/tablet.h
Normal file
18
include/config/tablet.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_TABLET_CONFIG_H
|
||||
#define LABWC_TABLET_CONFIG_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define BUTTON_MAP_MAX 16
|
||||
struct button_map_entry {
|
||||
uint32_t from;
|
||||
uint32_t to;
|
||||
};
|
||||
|
||||
uint32_t tablet_button_from_str(const char *button);
|
||||
uint32_t mouse_button_from_str(const char *button);
|
||||
void tablet_button_mapping_add(uint32_t from, uint32_t to);
|
||||
void tablet_load_default_button_mappings(void);
|
||||
|
||||
#endif /* LABWC_TABLET_CONFIG_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue