mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-28 07:30:54 +03:00
track pressed keys in input-capture (#170)
move pressed key tracking to input capture
This commit is contained in:
committed by
GitHub
parent
096567640c
commit
266ad28c6b
@@ -1,5 +1,5 @@
|
||||
use crate::{
|
||||
error::MacOSInputCaptureCreationError, CaptureError, CaptureHandle, InputCapture, Position,
|
||||
error::MacOSInputCaptureCreationError, Capture, CaptureError, CaptureHandle, Position,
|
||||
};
|
||||
use async_trait::async_trait;
|
||||
use futures_core::Stream;
|
||||
@@ -24,7 +24,7 @@ impl Stream for MacOSInputCapture {
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl InputCapture for MacOSInputCapture {
|
||||
impl Capture for MacOSInputCapture {
|
||||
async fn create(&mut self, _id: CaptureHandle, _pos: Position) -> Result<(), CaptureError> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user