mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-21 07:41:51 +00:00
LinuxKMS: Add support for libinput event hooks
Hidden behind the unstable-input-09 feature, the BackendSelector now exposes with_input_090_event_hook, which takes a callback that's invoked for every event received from libinput.
This commit is contained in:
parent
8ed0fd327e
commit
0cfe06b810
11 changed files with 102 additions and 20 deletions
|
@ -5,10 +5,7 @@ use i_slint_core::platform::PlatformError;
|
|||
pub struct Backend {}
|
||||
|
||||
impl Backend {
|
||||
pub fn new() -> Result<Self, PlatformError> {
|
||||
Self::new_with_renderer_by_name(None)
|
||||
}
|
||||
pub fn new_with_renderer_by_name(_renderer_name: Option<&str>) -> Result<Self, PlatformError> {
|
||||
pub fn build(_builder: super::BackendBuilder) -> Result<Self, PlatformError> {
|
||||
Ok(Backend {})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue