Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement acceleration using an input_handler modifying usbhid input events directly #5

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,28 +75,7 @@ remove_dkms:
@echo "====================================================="
@rm -rf $(DESTDIR)/usr/src/$(DKMS_NAME)-$(DKMS_VER)

udev_install:
@echo -e "\n::\033[34m Installing leetmouse udev rules\033[0m"
@echo "====================================================="
install -m 644 -v -D install_files/udev/99-leetmouse.rules $(DESTDIR)/usr/lib/udev/rules.d/99-leetmouse.rules
install -m 755 -v -D install_files/udev/leetmouse_bind $(DESTDIR)/usr/lib/udev/leetmouse_bind
install -m 755 -v -D install_files/udev/leetmouse_manage $(DESTDIR)/usr/lib/udev/leetmouse_manage

udev_trigger:
@echo -e "\n::\033[34m Triggering new udev rules\033[0m"
@echo "====================================================="
udevadm control --reload-rules
udevadm trigger --subsystem-match=usb --subsystem-match=input --subsystem-match=hid --attr-match=bInterfaceClass=03 --attr-match=bInterfaceSubClass=01 --attr-match=bInterfaceProtocol=02

udev_uninstall:
@echo -e "\n::\033[34m Uninstalling leetmouse udev rules\033[0m"
@echo "====================================================="
@rm -f $(DESTDIR)/usr/lib/udev/rules.d/99-leetmouse.rules $(DESTDIR)/usr/lib/udev/leetmouse_bind
udevadm control --reload-rules
. $(DESTDIR)/usr/lib/udev/leetmouse_manage unbind_all
@rm -f $(DESTDIR)/usr/lib/udev/leetmouse_manage

install_i_know_what_i_am_doing: all driver_install udev_install udev_trigger
install_i_know_what_i_am_doing: all driver_install
install: manual_install_msg ;

package:
Expand All @@ -109,4 +88,4 @@ manual_install_msg:
@echo "Please do not install the driver using this method. Use a distribution package as it tracks the files installed and can remove them afterwards. If you are 100% sure, you want to do this, find the correct target in the Makefile."
@echo "Exiting."

uninstall: driver_uninstall udev_uninstall
uninstall: driver_uninstall
2 changes: 1 addition & 1 deletion driver/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
obj-m += leetmouse.o
leetmouse-objs := accel.o usbmouse.o util.o
leetmouse-objs := accel.o usbmouse.o

ccflags-y += -mhard-float -mpreferred-stack-boundary=4

Expand Down
Loading