use crate::{error::MacOSInputCaptureCreationError, CaptureHandle, InputCapture, Position}; use futures_core::Stream; use input_event::Event; use std::task::{Context, Poll}; use std::{io, pin::Pin}; pub struct MacOSInputCapture; impl MacOSInputCapture { pub fn new() -> std::result::Result { Err(MacOSInputCaptureCreationError::NotImplemented) } } impl Stream for MacOSInputCapture { type Item = io::Result<(CaptureHandle, Event)>; fn poll_next(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> { Poll::Pending } } impl InputCapture for MacOSInputCapture { fn create(&mut self, _id: CaptureHandle, _pos: Position) -> io::Result<()> { Ok(()) } fn destroy(&mut self, _id: CaptureHandle) -> io::Result<()> { Ok(()) } fn release(&mut self) -> io::Result<()> { Ok(()) } }