-
Couldn't load subscription status.
- Fork 764
LinuxKMS: Report touch events as touch events to Slint #9872
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need touch_id and remove button
| touch_down_event.y_transformed(screen_size.height as u32) as _, | ||
| ); | ||
| Some(WindowEvent::PointerPressed { | ||
| Some(WindowEvent::TouchPressed { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If its TouchPressed then need touch_id and position, button is not required
| }) | ||
| } | ||
| input::event::TouchEvent::Up(..) => Some(WindowEvent::PointerReleased { | ||
| input::event::TouchEvent::Up(..) => Some(WindowEvent::TouchReleased { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here TouchReleased need touch_id and position
| touch_motion_event.y_transformed(screen_size.height as u32) as _, | ||
| ); | ||
| Some(WindowEvent::PointerMoved { position: self.last_touch_pos }) | ||
| Some(WindowEvent::TouchMoved { position: self.last_touch_pos }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
touch_id required here also
74d9e5b to
040a7d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks alright
cc #4352