Skip to content

Commit

Permalink
use std AtomicBool insteda of atomic's
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <[email protected]>
  • Loading branch information
fenollp committed Jul 27, 2024
1 parent f0447d8 commit 9f01dee
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/input/wacom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ use crate::device::rotate::CoordinatePart;
use crate::device::CURRENT_DEVICE;
use crate::input::scan::SCANNED;
use crate::input::{InputDeviceState, InputEvent, WacomEvent, WacomPen};
use atomic::Atomic;
use evdev::InputEvent as EvInputEvent;
use log::debug;
use std::sync::atomic::{AtomicU16, Ordering};
use std::sync::atomic::{AtomicBool, AtomicU16, Ordering};
use std::sync::LazyLock;

use crate::cgmath;
Expand All @@ -24,7 +23,7 @@ pub struct WacomState {
last_ytilt: AtomicU16,
last_dist: AtomicU16,
last_pressure: AtomicU16,
last_touch_state: Atomic<bool>,
last_touch_state: AtomicBool,
}

impl ::std::default::Default for WacomState {
Expand All @@ -36,7 +35,7 @@ impl ::std::default::Default for WacomState {
last_ytilt: AtomicU16::new(0),
last_dist: AtomicU16::new(0),
last_pressure: AtomicU16::new(0),
last_touch_state: Atomic::new(false),
last_touch_state: AtomicBool::new(false),
}
}
}
Expand Down

0 comments on commit 9f01dee

Please sign in to comment.