commit
8f2128c172
|
@ -239,13 +239,13 @@ fn main() -> Result<(), String> {
|
||||||
vector: (-1.0, 0.0),
|
vector: (-1.0, 0.0),
|
||||||
new_state: "90",
|
new_state: "90",
|
||||||
x_state: "right",
|
x_state: "right",
|
||||||
matrix: ["0", "-1", "1", "1", "0", "0", "0", "0", "1"],
|
matrix: ["0", "1", "0", "-1", "0", "1", "0", "0", "1"],
|
||||||
},
|
},
|
||||||
Orientation {
|
Orientation {
|
||||||
vector: (1.0, 0.0),
|
vector: (1.0, 0.0),
|
||||||
new_state: "270",
|
new_state: "270",
|
||||||
x_state: "left",
|
x_state: "left",
|
||||||
matrix: ["0", "1", "0", "-1", "0", "1", "0", "0", "1"],
|
matrix: ["0", "-1", "1", "1", "0", "0", "0", "0", "1"],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -317,9 +317,7 @@ fn main() -> Result<(), String> {
|
||||||
Command::new("xinput")
|
Command::new("xinput")
|
||||||
.arg("set-prop")
|
.arg("set-prop")
|
||||||
.arg(touchscreen)
|
.arg(touchscreen)
|
||||||
.arg("Coordinate")
|
.arg("Coordinate Transformation Matrix")
|
||||||
.arg("Transformation")
|
|
||||||
.arg("Matrix")
|
|
||||||
.args(&matrix)
|
.args(&matrix)
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("Xinput rotate command failed to start")
|
.expect("Xinput rotate command failed to start")
|
||||||
|
|
Loading…
Reference in New Issue