# ๐Ÿฑ KuroCat โ€” Full-State Keyboard & Mouse Desktop Cat Pet (macOS / Windows / Linux / UOS)

็ฎ€ไฝ“ไธญๆ–‡ | English ยท ๐ŸŒ Official Homepage (Play Live in Browser) ยท ๐ŸŽจ Skin Workshop & Plaza ยท โฌ‡๏ธ Download Latest

Typing on keyboard Hunting boba eyes on fast mouse movement Typing + dragging mouse + 3rd key with hind paw

Ultra-lightweight native desktop pet ยท Hardware-level full-state capture for typing & gaming ยท 2.5D spherical head tracking ยท Hunting boba eyes ยท Switchable cat skins
Native macOS (Swift + CoreGraphics + IOHIDManager) ยท Windows (C++17 + GDI+ + Raw Input) ยท Linux / UOS (C++17 + GTK3/Cairo + XInput2/evdev)

--- ## โœจ Highlights - **๐ŸŽฎ Full-State Input Capture for Typing & Gaming (True NKRO)** - **macOS**: Dual-layer `IOHIDManager` (kernel HID hardware layer) + `CGEventTap`, unaffected by IME switching. Supports holding `WASD` in games, key combinations, standalone modifier keys (`โŒ˜ / โ‡ง / โŒฅ / โŒƒ / Fn`), arrow keys, and `F1โ€“F12`. - **Windows**: Native `Raw Input API (RIDEV_INPUTSINK)` hardware scan-code listener. Captures global keystrokes and mouse micro-movements even inside DirectX/Vulkan games with locked cursor. - **Linux & UOS (็ปŸไฟก UOS)**: Dual-layer `XInput2 (XI_RawKeyPress/Motion)` + kernel `evdev (/dev/input/event*)`. **Works out of the box without `sudo` on UOS / Deepin / Ubuntu X11 desktops**; on Wayland, add your user to the `input` group for hardware-level full-state capture. - **๐ŸŒ€ 2.5D Spherical Head Tracking & Natural Perspective** - Uses a Live2D-style spherical projection algorithm: the cat's head, ears, eyes, and whiskers rotate with realistic 2.5D perspective and parallax toward your cursor. The keyboard and mouse are oriented 180ยฐ facing the cat, matching your left-hand keyboard / right-hand mouse gaming posture. - **โšก Hunting Boba Eyes Mode** - Shake your mouse quickly and the cat's pupils dilate from slit pupils into huge round boba eyes with bright highlightsโ€”crouching low, wagging its tail faster, and locking onto the cursor without blinking. - **๐Ÿพ Fun Interactive Details** - **3-Key "Hind Paw Press"**: Hold 3 or more keys simultaneously and the cat lifts its hind paw to press the 3rd key! - **4-Key "Tail Press"**: Hold exactly 4 keys and the tail curls over to press the 4th key! - **Keyboard Marquee Backlight**: A comet-like chase light sweeps along the keyboard diagonal โ€” the more keys you hold, the faster it runs and the longer its tail; the hue rotates once per sweep, reading like RGB backlight. - Both easter eggs and the marquee have their own checkable on/off items in the right-click menu (persisted via Windows Registry / macOS UserDefaults / Linux config.ini). - **Head / Back Petting**: Gently stroke the cat's head with your cursor to trigger cozy closed eyes `โ€” โ€”` and shimmer particles; leave it idle and it falls asleep with floating `z`s. - **Smart Click-Through, Launch at Login & Auto Update Check**: Transparent areas pass clicks through automatically. Toggle **Full Click-Through (Gaming Anti-Misclick)** anytime, enable **Launch at Login** (Windows Registry / macOS LaunchAgent / Linux XDG Autostart), and get automatic update notifications in the menu bar / tray. - **๐ŸŽจ Cat Skins & Custom Color Combinations** - **Cat Skins**: Classic Black Cat (neon yellow-green eyes) / Siamese Cat (warm oat cream + 2.5D caramel mask + chocolate socks + sapphire blue eyes) / American Shorthair (silver tabby & white) / Orange & White Cat (orange crown + white chest & mittens) / Brown Mackerel Tabby (Windows) - **Keyboard Themes**: Classic Warm Cream / Midnight Geek Black / Retro Cream Gray (toggle key labels, key bubbles, and mouse click bubbles) - **Eye Colors & Scaling**: 6 eye colors (plus Olive Gold on Windows), 5 size levels, plus daily keystroke counter and live KPM stats. ### 6-State Previews | Classic Black Cat | Siamese Cat | | :---: | :---: | | Classic Black Cat preview | Siamese Cat preview | | American Shorthair | Orange & White Cat | | :---: | :---: | | American Shorthair preview | Orange & White Cat preview | The 6-state previews are natively rendered by the app: Idle, Top-Left Look, Bottom-Right Look, Hunting, Keyboard/Mouse + 3rd Paw, and Petting Closed Eyes. ### Brown Mackerel Tabby (Windows) Classic Black and Brown Mackerel Tabby sitting and typing --- ## ๐Ÿ“ฆ Download & Run Download pre-built binaries from **[Releases](../../releases)** (built automatically via GitHub Actions): ### ๐ŸŽ macOS (Universal: Apple Silicon & Intel ยท macOS 11+) 1. Download `KuroCat-macOS-universal.zip`, unzip it, and drag `KuroCat.app` into **Applications** (lives in the top menu bar, no Dock icon). 2. On first launch, click the bottom prompt pill to open **System Settings โ†’ Privacy & Security โ†’ Input Monitoring**, enable `KuroCat`, then click **Restart KuroCat** from the menu bar to enable global typing & gaming capture. 3. Supports one-click **Launch at Login**. When **Full Click-Through** is enabled, use the menu bar icon or **hold `โŒฅ Option` and right-click / drag the cat**. **Build from source:** ```bash chmod +x build.sh ./build.sh open KuroCat.app ``` ### ๐ŸชŸ Windows (Windows 7 SP1 / 8 / 10 / 11 x64) 1. Download the single-file `KuroCat-Windows-x64.exe` (~220 KB, **zero external runtime dependencies**). Double-click to run; lives in the system tray. 2. Right-click the cat or click the tray icon to switch skins, keyboard themes, scale, **Launch at Login**, or **Full Click-Through**. 3. **4 ways to exit or open the menu while Full Click-Through is active**: - Global shortcut: **`Ctrl + Alt + Shift + P`** to toggle click-through; - Temporary unlock: hold **`Alt`** and right-click the cat to uncheck or left-drag to move; - System tray: click the black cat icon in the **`^` hidden icons area** on the taskbar; - Fallback: **double-click `KuroCat.exe` again** to disable click-through and open the settings menu at your cursor. > **Cat follows the mouse but not the keyboard in a game?** The game (or its launcher) runs as Administrator, and Windows withholds its keystrokes from normal apps. Right-click the cat โ†’ **Restart as administrator**, or tick **Always run as administrator**. KuroCat shows a tray tip when it detects such a game. > > **Cat disappears in games?** KuroCat now re-asserts always-on-top when a fullscreen/borderless game comes to the front and moves back on-screen after resolution changes. True *exclusive fullscreen* cannot be overlaid by any desktop window โ€” switch the game to borderless/windowed fullscreen. > > **Still told to update after downloading the new version?** An old copy was still running. A newer KuroCat now shuts down older running copies on launch, and the update prompt shows which exe is running. **Build from source (MSVC / MinGW):** ```bat cd windows build.bat ``` Or with CMake: ```bat cd windows cmake -B build && cmake --build build --config Release ``` ### ๐Ÿง Linux & UOS / Kylin (x86_64 & ARM64) Supports **Ubuntu 20.04+ / Debian 11+ / Deepin / UOS (x86_64 & ARM64) / Kylin / Arch / Fedora**: 1. **No-password install (recommended on UOS / Kylin)**: extract `KuroCat-Linux-x86_64.tar.gz` or `KuroCat-Linux-arm64.tar.gz` and run `bash install.sh` in that folder. It installs into `~/.local` for the current user only (no sudo); `bash uninstall.sh` removes it. 2. **`.deb` package (UOS / Deepin / Ubuntu / Debian / Kylin)**: - Download `KuroCat-Linux-amd64.deb` or `KuroCat-Linux-arm64.deb`, double-click it or run: ```bash sudo apt install ./KuroCat-Linux-amd64.deb ``` - Packages are built on Debian 10 (glibc 2.28), so older UOS 20 / Kylin V10 systems can run them. In-app updates install per-user and no longer ask for a password. - Kylin refuses to install? Set *Security Center โ†’ App Protection / Execution Control* to Off or Warn, or use the no-password install. 3. **Other Linux distros (Arch / Fedora, etc.)**: - Extract the tar.gz and run `bash install.sh`, or simply run `./kurocat`. - Desktop lagging? KuroCat uses an adaptive 30/20/10 fps by default; the **60fps** option in the menu should stay off on low-end machines. - On pure **Wayland** sessions, run `sudo usermod -aG input $USER` once and re-login to enable kernel-level `evdev` capture. 4. **Build from source (including LoongArch)**: ```bash sudo apt install g++ pkg-config libgtk-3-dev libcairo2-dev libx11-dev libxi-dev cd linux && chmod +x build.sh build_deb.sh ./build.sh # Compile binary ./build_deb.sh # Package .deb installer ``` --- ## ๐Ÿ“ Project Structure ```text KuroCat/ โ”œโ”€โ”€ Sources/ # macOS native Swift source (Universal: Apple Silicon + Intel) โ”œโ”€โ”€ Resources/ # macOS Info.plist & AppIcon.icns โ”œโ”€โ”€ build.sh # macOS universal binary build script โ”œโ”€โ”€ windows/ # Windows native C++17 (Win32 + GDI+ + Raw Input) โ”œโ”€โ”€ linux/ # Linux & UOS native C++17 (GTK3 + Cairo + XInput2 + evdev) โ”‚ โ”œโ”€โ”€ src/ # KeyMap / InputEngine / CatPhysics / CatRenderer / main.cpp โ”‚ โ”œโ”€โ”€ build.sh # Local build script โ”‚ โ””โ”€โ”€ build_deb.sh # Debian / UOS .deb packager โ””โ”€โ”€ .github/workflows/build.yml # Automated multi-platform release workflow ``` --- ## ๐Ÿ”’ Privacy All keyboard and mouse hardware signals in KuroCat are processed **strictly in local memory in real time** to drive animations and countersโ€”**no keystrokes are ever logged or saved**. Aside from checking the official release endpoint for new versions on startup or when manually clicking "Check for Updates", KuroCat makes no network requests. The entire codebase is open source and auditable. ## ๐Ÿ“„ License [MIT License](LICENSE)