add command for transform

This commit is contained in:
Evy Garden 2023-05-27 22:05:35 +02:00
parent 48d6eda3cb
commit 6903488191
6 changed files with 97 additions and 0 deletions

View file

@ -251,6 +251,7 @@ sway_cmd input_cmd_calibration_matrix;
sway_cmd input_cmd_click_method;
sway_cmd input_cmd_drag;
sway_cmd input_cmd_drag_lock;
sway_cmd input_cmd_transform;
sway_cmd input_cmd_dwt;
sway_cmd input_cmd_dwtp;
sway_cmd input_cmd_events;

View file

@ -138,6 +138,18 @@ struct input_config_tool {
enum sway_tablet_tool_mode mode;
};
enum sway_input_transform {
INPUT_TRANSFORM_DEFAULT,
INPUT_TRANSFORM_NORMAL,
INPUT_TRANSFORM_90,
INPUT_TRANSFORM_180,
INPUT_TRANSFORM_270,
INPUT_TRANSFORM_FLIPPED,
INPUT_TRANSFORM_FLIPPED_90,
INPUT_TRANSFORM_FLIPPED_180,
INPUT_TRANSFORM_FLIPPED_270,
};
/**
* options for input devices
*/
@ -184,6 +196,8 @@ struct input_config {
char *mapped_to_output;
struct wlr_box *mapped_to_region;
enum sway_input_transform transform;
list_t *tools;
bool capturable;