clientmem: store more information about mappings
This commit is contained in:
parent
92f7cb56fd
commit
604974c927
6 changed files with 67 additions and 18 deletions
|
|
@ -353,8 +353,9 @@ impl Input {
|
|||
async fn handle_keymap(&self, input: JayInputId) -> Vec<u8> {
|
||||
let data = Rc::new(RefCell::new(Vec::new()));
|
||||
jay_input::Keymap::handle(&self.tc, input, data.clone(), |d, map| {
|
||||
let mem = Rc::new(ClientMem::new(map.keymap.raw(), map.keymap_len as _, true).unwrap())
|
||||
.offset(0);
|
||||
let mem =
|
||||
Rc::new(ClientMem::new(&map.keymap, map.keymap_len as _, true, None).unwrap())
|
||||
.offset(0);
|
||||
mem.read(d.borrow_mut().deref_mut()).unwrap();
|
||||
});
|
||||
self.tc.round_trip().await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue