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:
Simon Hausmann 2025-08-01 12:37:15 +00:00 committed by Simon Hausmann
parent 8ed0fd327e
commit 0cfe06b810
11 changed files with 102 additions and 20 deletions

View file

@ -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 {})
}
}