resolve friends' grid to absolute

This commit is contained in:
2025-12-16 22:27:55 +08:00
parent 8185b2c9a1
commit edeb1f4d78
4 changed files with 70 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
use device_query::{DeviceEvents, DeviceEventsHandler};
use once_cell::sync::OnceCell;
use serde::Serialize;
use serde::{Deserialize, Serialize};
use std::sync::atomic::{AtomicU64, Ordering};
use std::sync::Arc;
use std::time::Duration;
@@ -10,7 +10,7 @@ use ts_rs::TS;
use crate::{get_app_handle, lock_r, state::FDOLL};
#[derive(Clone, Serialize, TS)]
#[derive(Debug, Clone, Serialize, Deserialize, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export)]
pub struct CursorPosition {
@@ -18,7 +18,7 @@ pub struct CursorPosition {
pub y: i32,
}
#[derive(Clone, Serialize, TS)]
#[derive(Debug, Clone, Serialize, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export)]
pub struct CursorPositions {