mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Support calibration-matrix in touch input config
This commit is contained in:
committed by
Ivan Molodetskikh
parent
1b41ef146d
commit
03c564736a
@@ -371,6 +371,8 @@ pub struct Tablet {
|
||||
pub struct Touch {
|
||||
#[knuffel(child)]
|
||||
pub off: bool,
|
||||
#[knuffel(child, unwrap(arguments))]
|
||||
pub calibration_matrix: Option<Vec<f32>>,
|
||||
#[knuffel(child, unwrap(argument))]
|
||||
pub map_to_output: Option<String>,
|
||||
}
|
||||
|
||||
@@ -993,6 +993,7 @@ mod tests {
|
||||
},
|
||||
touch: Touch {
|
||||
off: false,
|
||||
calibration_matrix: None,
|
||||
map_to_output: Some(
|
||||
"eDP-1",
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user