comparison src/state.rs @ 12:d43c31aff57c

Split uinput helpers into another module.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 01 Nov 2020 16:01:00 +0100
parents 0193041f01d4
children 97e543f50f62
comparison
equal deleted inserted replaced
11:0193041f01d4 12:d43c31aff57c
15 // along with this program. If not, see <https://www.gnu.org/licenses/>. 15 // along with this program. If not, see <https://www.gnu.org/licenses/>.
16 16
17 use std::fs::File; 17 use std::fs::File;
18 use std::sync::{Arc, Mutex}; 18 use std::sync::{Arc, Mutex};
19 19
20 use crate::{create_uinput_device, WIDTH, HEIGHT, input_axis_new, input_misc_new, input_key_new, input_synchronize_new, MAX_X, MAX_Y};
21 use input_linux::{AbsoluteAxis, Key, MiscKind, SynchronizeKind, UInputHandle}; 20 use input_linux::{AbsoluteAxis, Key, MiscKind, SynchronizeKind, UInputHandle};
21 use crate::{WIDTH, HEIGHT, MAX_X, MAX_Y};
22 use crate::uinput::{create_uinput_device, input_axis_new, input_misc_new, input_key_new, input_synchronize_new};
22 23
23 pub struct State { 24 pub struct State {
24 dev: UInputHandle<File>, 25 dev: UInputHandle<File>,
25 width: f64, 26 width: f64,
26 height: f64, 27 height: f64,