1
0
Fork 0
forked from wry/wry

metal: enable keyboard LEDs

This commit is contained in:
Julian Orth 2025-09-07 12:09:43 +02:00
parent 0e51b9469b
commit 11c10fde70
14 changed files with 188 additions and 22 deletions

View file

@ -83,7 +83,7 @@ use {
},
io_uring::IoUring,
kbvm::{KbvmContext, KbvmMap},
keyboard::KeyboardStateIds,
keyboard::{KeyboardStateIds, ModifiersListener},
leaks::Tracker,
logger::Logger,
pr_caps::PrCapsThread,
@ -100,11 +100,21 @@ use {
generic_node_visitor,
},
utils::{
activation_token::ActivationToken, asyncevent::AsyncEvent, bindings::Bindings,
clonecell::CloneCell, copyhashmap::CopyHashMap, errorfmt::ErrorFmt,
event_listener::EventSource, fdcloser::FdCloser, hash_map_ext::HashMapExt,
linkedlist::LinkedList, numcell::NumCell, queue::AsyncQueue, refcounted::RefCounted,
run_toplevel::RunToplevel, toplevel_identifier::ToplevelIdentifier,
activation_token::ActivationToken,
asyncevent::AsyncEvent,
bindings::Bindings,
clonecell::CloneCell,
copyhashmap::CopyHashMap,
errorfmt::ErrorFmt,
event_listener::{EventListener, EventSource},
fdcloser::FdCloser,
hash_map_ext::HashMapExt,
linkedlist::LinkedList,
numcell::NumCell,
queue::AsyncQueue,
refcounted::RefCounted,
run_toplevel::RunToplevel,
toplevel_identifier::ToplevelIdentifier,
},
video::{
dmabuf::DmaBufIds,
@ -386,6 +396,8 @@ pub struct DeviceHandlerData {
pub tablet_init: Option<Box<TabletInit>>,
pub tablet_pad_init: Option<Box<TabletPadInit>>,
pub is_touch: bool,
pub is_kb: bool,
pub mods_listener: EventListener<dyn ModifiersListener>,
}
pub struct ConnectorData {