mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-07-10 09:47:43 +08:00
e2ec6a5be8
Signed-off-by: fufesou <linlong1266@gmail.com>
36 lines
645 B
Rust
36 lines
645 B
Rust
use serde_derive::{Deserialize, Serialize};
|
|
|
|
mod client;
|
|
mod server;
|
|
|
|
#[cfg(target_os = "windows")]
|
|
mod windows;
|
|
#[cfg(target_os = "macos")]
|
|
mod macos;
|
|
|
|
#[cfg(target_os = "windows")]
|
|
use windows::create_event_loop;
|
|
#[cfg(target_os = "macos")]
|
|
use macos::create_event_loop;
|
|
|
|
pub use client::*;
|
|
pub use server::*;
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
#[serde(tag = "t", content = "c")]
|
|
pub enum CustomEvent {
|
|
Cursor(Cursor),
|
|
Clear,
|
|
Exit,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
#[serde(tag = "t")]
|
|
pub struct Cursor {
|
|
pub x: f32,
|
|
pub y: f32,
|
|
pub argb: u32,
|
|
pub btns: i32,
|
|
pub text: String,
|
|
}
|