macOS mouse utility · 2026
MouseCraft
A menu-bar app that makes classic mice pleasant on a Mac: a scroll direction separate from the trackpad’s, smooth scrolling, remappable buttons and fluid gestures between Spaces.
Chapter select
Chapter 1The briefThe project in a few linesTo discover
Chapter 2GameplayWhat the app does, feature by featureTo discover
Chapter 3The numbersThe results screenTo discover
Chapter 4Behind the scenesRole, period, platforms and stackTo discover
Chapter 5Photo modeEvery screenshot, full sizeTo discover
Chapter 6TrophiesWhat was achieved on this projectTo discover
Chapter 7CreditsWho did whatTo discover
The brief
MouseCraft lives in the menu bar and intercepts the mouse at system level. It separates the wheel’s scroll direction from the trackpad’s, animates scrolling like a trackpad does and gives every button a job: click, double click, hold or drag. Written in Swift and SwiftUI, with no external dependencies.
Gameplay
- Wheel direction set separately for the mouse (vertical and horizontal) and for the trackpad or Magic Mouse, without touching the macOS “Natural scrolling” setting.
- Smooth scrolling at 120 Hz, with exponential decay and sub-pixel carry-over; adjustable speed, smoothness and acceleration, and it can be turned off per app.
- Keys + wheel: ⇧ to scroll sideways, ⌥ for precise scrolling, ⌘ to zoom, AZERTY included, by reading the active keyboard layout.
- Middle button, buttons 4 and 5 and any extra button detected: one action on click, double click, hold and drag, from 21 actions (back, Mission Control, Spotlight, media keys, keyboard shortcut, open an app…).
- Fluid gestures like a three-finger trackpad swipe: hold the middle button and drag left or right to switch Spaces with the screen following the mouse, up for Mission Control, down for the app’s windows.
- Interception with a HID-level CGEventTap on a dedicated thread; mouse and trackpad are told apart by the “continuous” field and the scroll phases.
- Detects other utilities that intercept the mouse, a list of apps where MouseCraft steps aside completely, launch at login and settings stored as readable JSON.
- Pure logic isolated in a module covered by 30 unit tests; a release script builds a universal DMG (Apple Silicon and Intel).
The numbers
Behind the scenes
- Role
- Creator, solo developer
- Organization
- Personal project
- Period
- November 2026
- Platforms
- macOS
- Status
- Version 1.0.0, personal use
Tech stack
Photo mode
Trophies
MouseCraft
- Each its own way
Give the mouse and the trackpad their own scroll direction, without touching the macOS setting.
Gold
Very rare · Earned November 2026 - Three fingers
Switch Spaces by dragging with the middle button, the screen following the mouse like on a trackpad.
Silver
Rare · Earned November 2026 - Smooth operator
Animate every wheel notch at 120 Hz.
Bronze
Common · Earned November 2026
Credits
A production by
Personal project
Design and development
Mohamed Melek Chtourou
Role
Creator, solo developer
Period
November 2026
Tech stack
Swift · SwiftUI · AppKit · Core Graphics · CGEventTap · Carbon · ServiceManagement · Swift Package Manager · XCTest
Thanks for playing


