Ai
1 Star 0 Fork 0

mindbox/xloop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mouse.rs 394 Bytes
一键复制 编辑 原始数据 按行查看 历史
mindbox 提交于 2025-03-20 16:53 +08:00 . refact event
use core::time::Duration;
use crate::{Button, Metas, Phase};
#[derive(Debug, Clone)]
pub struct Mouse {
pub button: Button,
pub phase: Phase,
pub point: (f32, f32),
pub metas: Metas,
pub time: Duration,
}
impl Mouse {
pub fn new(button: Button, phase: Phase, point: (f32, f32), metas: Metas, time: Duration) -> Self {
Self {
button,
phase,
point,
metas,
time,
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mindbox/xloop.git
git@gitee.com:mindbox/xloop.git
mindbox
xloop
xloop
master

搜索帮助