Use an enum instead of a marker string for map_to_

This commit is contained in:
Tadeo Kondrak 2019-11-01 11:37:29 -06:00 committed by Simon Ser
parent 4829f1c26a
commit 7f54495b5e
5 changed files with 45 additions and 40 deletions

View file

@ -108,6 +108,12 @@ struct calibration_matrix {
float matrix[6];
};
enum input_config_mapped_to {
MAPPED_TO_DEFAULT,
MAPPED_TO_OUTPUT,
MAPPED_TO_REGION
};
/**
* options for input devices
*/
@ -147,6 +153,8 @@ struct input_config {
int xkb_capslock;
struct input_config_mapped_from_region *mapped_from_region;
enum input_config_mapped_to mapped_to;
char *mapped_to_output;
struct wlr_box *mapped_to_region;