use statically linked interception library for directinput emulation

This commit is contained in:
4yn
2022-07-24 21:12:40 +08:00
parent 0e75256520
commit 571eec24d3
20 changed files with 1948 additions and 31 deletions
+2 -1
View File
@@ -42,9 +42,10 @@ impl AsyncJob for OutputJob {
layout,
polling,
sensitivity,
direct_input,
} => {
self.sensitivity = sensitivity;
self.handler = Some(Box::new(KeyboardOutput::new(layout.clone())));
self.handler = Some(Box::new(KeyboardOutput::new(layout.clone(), direct_input)));
self.timer = interval(Duration::from_micros(polling.to_t_u64()));
true