comparison src/state.rs @ 16:478cf2a7d577

Reformat with rustfmt.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 26 Aug 2021 19:45:30 +0200
parents d103f7cca0bd
children 0bce7fe96937
comparison
equal deleted inserted replaced
15:d103f7cca0bd 16:478cf2a7d577
12 // GNU Affero General Public License for more details. 12 // GNU Affero General Public License for more details.
13 // 13 //
14 // You should have received a copy of the GNU Affero General Public License 14 // You should have received a copy of the GNU Affero General Public License
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 crate::uinput::{
18 create_uinput_device, input_axis_new, input_key_new, input_misc_new, input_synchronize_new,
19 };
20 use crate::{DEFAULT_HEIGHT, DEFAULT_WIDTH, MAX_X, MAX_Y};
21 use input_linux::{AbsoluteAxis, Key, MiscKind, SynchronizeKind, UInputHandle};
17 use std::fs::File; 22 use std::fs::File;
18
19 use input_linux::{AbsoluteAxis, Key, MiscKind, SynchronizeKind, UInputHandle};
20 use crate::{DEFAULT_WIDTH, DEFAULT_HEIGHT, MAX_X, MAX_Y};
21 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,