Skip to content

Commit

Permalink
chore(examples): into_raw exists now
Browse files Browse the repository at this point in the history
  • Loading branch information
arcnmx committed Jul 19, 2024
1 parent 7928566 commit 28ab728
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/mouse-movements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 47,9 @@ fn main() -> io::Result<()> {
for _ in 0..50 {
const ZERO: EventTime = EventTime::new(0, 0);
let events = [
*InputEvent::from(RelativeEvent::new(ZERO, RelativeAxis::X, 5)).as_raw(),
*InputEvent::from(RelativeEvent::new(ZERO, RelativeAxis::Y, 5)).as_raw(),
*InputEvent::from(SynchronizeEvent::new(ZERO, SynchronizeKind::Report, 0)).as_raw(),
InputEvent::from(RelativeEvent::new(ZERO, RelativeAxis::X, 5)).into_raw(),
InputEvent::from(RelativeEvent::new(ZERO, RelativeAxis::Y, 5)).into_raw(),
InputEvent::from(SynchronizeEvent::new(ZERO, SynchronizeKind::Report, 0)).into_raw(),
];
uhandle.write(&events)?;
thread::sleep(Duration::from_micros(15_000));
Expand Down

0 comments on commit 28ab728

Please sign in to comment.