2023-12-29 10:06:17 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
#ifndef LABWC_TABLET_CONFIG_H
|
|
|
|
|
#define LABWC_TABLET_CONFIG_H
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2025-08-17 16:01:50 -04:00
|
|
|
#include "config/types.h"
|
2023-12-29 10:06:17 +01:00
|
|
|
|
2024-01-01 18:26:38 +01:00
|
|
|
double tablet_get_dbl_if_positive(const char *content, const char *name);
|
2025-08-17 16:01:50 -04:00
|
|
|
enum lab_rotation tablet_parse_rotation(int value);
|
2023-12-29 10:06:17 +01:00
|
|
|
uint32_t tablet_button_from_str(const char *button);
|
|
|
|
|
void tablet_button_mapping_add(uint32_t from, uint32_t to);
|
|
|
|
|
void tablet_load_default_button_mappings(void);
|
2024-01-17 19:01:06 +01:00
|
|
|
uint32_t tablet_get_mapped_button(uint32_t src_button);
|
2023-12-29 10:06:17 +01:00
|
|
|
|
|
|
|
|
#endif /* LABWC_TABLET_CONFIG_H */
|