Skip to content

Commit c80a55d

Browse files
authored
refactor: remove support for wayland for now (#567)
1 parent 1d95ec0 commit c80a55d

File tree

4 files changed

+19
-308
lines changed

4 files changed

+19
-308
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
本项目的灵感来源于 [MMmmmoko](https://github.com/MMmmmoko) 大佬开发的 [Bongo-Cat-Mver](https://github.com/MMmmmoko/Bongo-Cat-Mver)。它以独特的猫咪互动功能深受用户喜爱,但仅支持 Windows 平台。作为一名深度 macOS 用户,我特别希望在自己的设备上也能使用这款可爱的猫咪,于是我决定开发一个适配 macOS 的版本。
6161

62-
同时,得益于 [Tauri](https://github.com/tauri-apps/tauri) 强大的跨平台能力,本项目不仅支持 macOS,还兼容 Windows 和 Linux,让更多的用户都能与这只可爱的猫咪互动!
62+
同时,得益于 [Tauri](https://github.com/tauri-apps/tauri) 强大的跨平台能力,本项目不仅支持 macOS,还兼容 Windows 和 Linux(x11),让更多的用户都能与这只可爱的猫咪互动!
6363

6464
## 下载
6565

@@ -70,16 +70,12 @@
7070
7171
## 功能介绍
7272

73-
- 适配 macOS、Windows 和 Linux。
73+
- 适配 macOS、Windows 和 Linux(x11)
7474
- 根据据键盘或鼠标操作,同步移动鼠标或敲击键盘。
7575
- 支持导入自定义模型,自由打造专属猫咪形象。
7676
- 完全开源,代码公开透明,绝不收集任何用户数据。
7777
- 支持离线运行,无需联网,保护用户隐私。
7878

79-
## 使用提示
80-
81-
- Linux 下需要用户系统安装 libinput 并加入 `input` 用户组,方可在 X11 和 Wayland 下正常使用。
82-
8379
## 更多模型
8480

8581
你可以在这个仓库中探索、下载更多猫咪模型,或提交你的创作,与大家一起分享:
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
use crate::core::device::{DeviceEvent, DeviceEventKind};
21
use rdev::{Event, EventType, listen};
3-
use serde_json::json;
2+
use serde::Serialize;
3+
use serde_json::{Value, json};
44
use std::sync::atomic::{AtomicBool, Ordering};
55
use tauri::{AppHandle, Emitter, Runtime, command};
66

7+
#[derive(Debug, Clone, Serialize)]
8+
pub enum DeviceEventKind {
9+
MousePress,
10+
MouseRelease,
11+
MouseMove,
12+
KeyboardPress,
13+
KeyboardRelease,
14+
}
15+
16+
#[derive(Debug, Clone, Serialize)]
17+
pub struct DeviceEvent {
18+
kind: DeviceEventKind,
19+
value: Value,
20+
}
21+
722
static IS_LISTENING: AtomicBool = AtomicBool::new(false);
823

924
#[command]

src-tauri/src/core/device/linux.rs

Lines changed: 0 additions & 271 deletions
This file was deleted.

src-tauri/src/core/device/mod.rs

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)