Skip to content

neel685/hid-magicmouse-virtual_touchpad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hid-magicmouse-virtual_touchpad

This is a fun little project of mine that converts Apple Magic Mouse's one-finger touch events to two-fingered touchpad-driven events.

This way, the userspace(e.g. libinput or Synaptics) can recognize those events as touchpad events and apply smooth scrolling.

See this demo.

How to install

Do a make, and replace /lib/modules's hid-magicmouse.ko to this one.

Or, simply do a rmmod hid_magicmouse; insmod hid-magicmouse.ko.

Warning

This is a little rough around the edges.

  • You need to have two fingers on the surface at all times if you don't want it to randomly start scrolling.

  • Upon switching from scrolling to just resting your fingers on the surface, you may find "finger-rejection" is less than ideal.

  • A single tap on the surface will register as a right click. This needs a rejection implementation.

Enjoy!

About

Maps Apple Magic Mouse's scrolling to touchpad events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.7%
  • Makefile 0.3%