mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-31 17:10:54 +03:00
move refcounting of key presses to input-emulation (#169)
This commit is contained in:
committed by
GitHub
parent
68361b25d1
commit
8f7890c9be
@@ -3,19 +3,19 @@ use input_event::Event;
|
||||
|
||||
use crate::error::EmulationError;
|
||||
|
||||
use super::{EmulationHandle, InputEmulation};
|
||||
use super::{Emulation, EmulationHandle};
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct DummyEmulation;
|
||||
pub(crate) struct DummyEmulation;
|
||||
|
||||
impl DummyEmulation {
|
||||
pub fn new() -> Self {
|
||||
pub(crate) fn new() -> Self {
|
||||
Self {}
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl InputEmulation for DummyEmulation {
|
||||
impl Emulation for DummyEmulation {
|
||||
async fn consume(
|
||||
&mut self,
|
||||
event: Event,
|
||||
|
||||
Reference in New Issue
Block a user