Skip to content

Commit

Permalink
Fix input device example (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlixANNERAUD authored Jan 2, 2025
1 parent 80fd2a7 commit de9c90d
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 de9c90d

Please sign in to comment.