mirl 9.2.0

Miners Rust Lib - A massive collection of ever growing and changing functions, structs, and enums. Check the description for compatibility and toggleable features! (Most of the lib is controlled by flags/features so the lib can continue to be lightweight despite its size)
/// A way of getting the raw mouse input since using the mouse input of the os would always result in a frame of latency
pub const trait RawMouseInputTrait {
    /// Create a new raw mouse input getter under the window from which should poll the mouse move event
    ///
    /// # Errors
    fn new(handle: RawWindowHandle) -> Result<Self, &'static str>
    where
        Self: Sized;
    /// Get current delta, add this to the position the os gives you to get the true mouse pos (assuming acceleration, smoothing and other mouse position manipulation methods aren't applied by the os)
    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)
)]
/// Represents mouse movement delta values
#[derive(Debug, Clone, Copy, Default)]
#[cfg_attr(feature = "c_compatible", repr(C))]
pub struct MouseDelta {
    /// Delta X
    pub dx: i32,
    /// Delta Y
    pub dy: i32,
}
#[cfg(target_os = "windows")]
mod windows;
use raw_window_handle::RawWindowHandle;
#[cfg(target_os = "windows")]
pub use windows::RawMouseInputWindows as RawMouseInput;