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