mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
config: fix signature formatting
This commit is contained in:
parent
e61e4c4e75
commit
21234a5763
1 changed files with 10 additions and 5 deletions
|
|
@ -7,7 +7,8 @@
|
|||
#include "config/tablet.h"
|
||||
#include "config/rcxml.h"
|
||||
|
||||
enum rotation tablet_parse_rotation(int value)
|
||||
enum rotation
|
||||
tablet_parse_rotation(int value)
|
||||
{
|
||||
switch (value) {
|
||||
case 0:
|
||||
|
|
@ -25,7 +26,8 @@ enum rotation tablet_parse_rotation(int value)
|
|||
return LAB_ROTATE_NONE;
|
||||
}
|
||||
|
||||
uint32_t tablet_button_from_str(const char *button)
|
||||
uint32_t
|
||||
tablet_button_from_str(const char *button)
|
||||
{
|
||||
if (!strcasecmp(button, "Tip")) {
|
||||
return BTN_TOOL_PEN;
|
||||
|
|
@ -40,7 +42,8 @@ uint32_t tablet_button_from_str(const char *button)
|
|||
return UINT32_MAX;
|
||||
}
|
||||
|
||||
uint32_t mouse_button_from_str(const char *button)
|
||||
uint32_t
|
||||
mouse_button_from_str(const char *button)
|
||||
{
|
||||
if (!strcasecmp(button, "Left")) {
|
||||
return BTN_LEFT;
|
||||
|
|
@ -53,7 +56,8 @@ uint32_t mouse_button_from_str(const char *button)
|
|||
return UINT32_MAX;
|
||||
}
|
||||
|
||||
void tablet_button_mapping_add(uint32_t from, uint32_t to)
|
||||
void
|
||||
tablet_button_mapping_add(uint32_t from, uint32_t to)
|
||||
{
|
||||
struct button_map_entry *entry;
|
||||
for (size_t i = 0; i < rc.tablet.button_map_count; i++) {
|
||||
|
|
@ -77,7 +81,8 @@ void tablet_button_mapping_add(uint32_t from, uint32_t to)
|
|||
rc.tablet.button_map_count++;
|
||||
}
|
||||
|
||||
void tablet_load_default_button_mappings(void)
|
||||
void
|
||||
tablet_load_default_button_mappings(void)
|
||||
{
|
||||
tablet_button_mapping_add(BTN_TOOL_PEN, BTN_LEFT); /* Used for the pen tip */
|
||||
tablet_button_mapping_add(BTN_STYLUS, BTN_RIGHT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue