Skip to content

Commit

Permalink
Fix input device example
Browse files Browse the repository at this point in the history
  • Loading branch information
AlixANNERAUD committed Dec 22, 2023
1 parent 77902bd commit e6435c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lvgl/src/input_device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
//! fn main() {
//! // IMPORTANT: Initialize a display driver first!
//! // ...
//! // Define the initial state of your input
//! // Define the initial state of your input//!
//! let mut latest_touch_status = PointerInputData::Touch(Point::new(0, 0)).released().once();
//! // Register a new input device that's capable of reading the current state of the input
//! let mut touch_screen = Pointer::new(|| latest_touch_status, &display);
//! lvgl::indev_drv_register(&mut touch_screen).unwrap();
//! let pointer = Pointer::register(|| latest_touch_status, &display).unwrap();
//! // ...
//! }
//! ```
Expand Down

0 comments on commit e6435c3

Please sign in to comment.