Skip to content

Userspace "driver" that translates Joy-Con inputs to mouse inputs

License

Notifications You must be signed in to change notification settings

coolreader18/joykbd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

joykbd

Translates joy-con -> mouse. Specifically, (by default,) the stick acts like a thinkpad "nub", ZL/ZR left-click, L/R right-click.

Usage

Clone this repository and build it using cargo. Alternatively, install it with cargo install --git https://github.com/coolreader18/joykbd.

Connect a Joy-Con to your computer using bluetooth. Ensure you have a driver for Joy-Cons; I've had no issues with dkms-hid-nintendo (aur).

joykbd /dev/input/eventNN
# by default, it looks for a device in /dev/input whose name has "Joy-Con" in it
# so, leaving the device path out should be fine in most cases
joykbd
# if the cursor tends to like going to the right more then the left, set
# --x-bias with a negative value. Vice-versa for leaning left more than right,
# and same with --y-bias for the Y axis
joykbd --x-bias -2000
# if you have bad joycon drift, set --drift-threshold. Axis readings where
# abs(value) < drift-threshold will be ignored. Note that this also makes the
# pointing device less sensitive, unfortunately.
joykbd --drift-threshold 4000

License

This project is licensed under the MIT license. Please see the LICENSE file for more details.

About

Userspace "driver" that translates Joy-Con inputs to mouse inputs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages