pub const trait RawMouseInputTrait {
fn new(handle: RawWindowHandle) -> Result<Self, &'static str>
where
Self: Sized;
fn get_delta(&self) -> (i32, i32);
}
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "bitcode", derive(bitcode::Encode, bitcode::Decode))]
#[cfg_attr(
feature = "wincode",
derive(wincode::SchemaWrite, wincode::SchemaRead)
)]
#[derive(Debug, Clone, Copy, Default)]
#[cfg_attr(feature = "c_compatible", repr(C))]
pub struct MouseDelta {
pub dx: i32,
pub dy: i32,
}
#[cfg(target_os = "windows")]
mod windows;
use raw_window_handle::RawWindowHandle;
#[cfg(target_os = "windows")]
pub use windows::RawMouseInputWindows as RawMouseInput;