Skip to content

Commit 03dfec6

Browse files
committed
refactor the input section into input_post_processing
1 parent 3da5315 commit 03dfec6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct ConfigToml {
5353
cert_path: Option<PathBuf>,
5454
clients: Option<Vec<TomlClient>>,
5555
authorized_fingerprints: Option<HashMap<String, String>>,
56-
input: InputConfig,
56+
input_post_processing: InputConfig,
5757
}
5858

5959
#[derive(Serialize, Deserialize, Debug)]
@@ -376,14 +376,14 @@ impl Config {
376376
pub fn invert_scroll(&self) -> bool {
377377
self.config_toml
378378
.as_ref()
379-
.and_then(|c| c.input.invert_scroll)
379+
.and_then(|c| c.input_post_processing.invert_scroll)
380380
.unwrap_or(false)
381381
}
382382

383383
pub fn mouse_sensitivity(&self) -> f64 {
384384
self.config_toml
385385
.as_ref()
386-
.and_then(|c| c.input.mouse_sensitivity)
386+
.and_then(|c| c.input_post_processing.mouse_sensitivity)
387387
.unwrap_or(1.0)
388388
}
389389

0 commit comments

Comments
 (0)