mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-20 16:13:20 +03:00
cleanup conditional compilation
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
|
#[cfg(windows)]
|
||||||
pub mod windows;
|
pub mod windows;
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
pub mod wayland;
|
pub mod wayland;
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
pub mod x11;
|
pub mod x11;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![cfg(unix)]
|
|
||||||
use crate::client::{Client, ClientHandle};
|
use crate::client::{Client, ClientHandle};
|
||||||
use crate::request::{self, Request};
|
use crate::request::{self, Request};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![cfg(unix)]
|
|
||||||
use crate::{
|
use crate::{
|
||||||
client::{Client, ClientHandle, Position},
|
client::{Client, ClientHandle, Position},
|
||||||
request,
|
request,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![cfg(windows)]
|
|
||||||
use std::sync::mpsc::Receiver;
|
use std::sync::mpsc::Receiver;
|
||||||
|
|
||||||
use winapi::{self, um::winuser::{INPUT, LPINPUT, INPUT_MOUSE, MOUSEINPUT, MOUSEEVENTF_MOVE}};
|
use winapi::{self, um::winuser::{INPUT, LPINPUT, INPUT_MOUSE, MOUSEINPUT, MOUSEEVENTF_MOVE}};
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![cfg(windows)]
|
|
||||||
use std::sync::mpsc::SyncSender;
|
use std::sync::mpsc::SyncSender;
|
||||||
|
|
||||||
use crate::{event::Event, client::{ClientHandle, Client}, request::Server};
|
use crate::{event::Event, client::{ClientHandle, Client}, request::Server};
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#![cfg(unix)]
|
|
||||||
use std::{sync::mpsc::Receiver, ptr};
|
use std::{sync::mpsc::Receiver, ptr};
|
||||||
use x11::{xtest, xlib};
|
use x11::{xtest, xlib};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user