Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix input device example #157

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading