Joystick algorithms for QMK

https://lemmy.world/post/4257782

Joystick algorithms for QMK - Lemmy.world

So I have tried to play around with joystick’s algorithms a little bit and made QMK PR in the end.

I haven’t started experimenting around with the code for joysticks but am in the middle of making a keyboard (half) with a joystick. Did you find it worked ok just for acting as keyboard keys/combinations of keys?

I see under the ‘Accelerated’ portion where you tried to emulate mouse keys there weren’t really any results?

Hi, I have only tried using joystick as mouse and improve that. While doing this I found one suggestion how to do what you are looking for here: reddit.com/…/qmk_simple_question_is_it_possible_t…
[QMK] simple question: is it possible to use Joystick both as a pointing device and arrow keys ?

Posted in r/olkb by u/wj-zhe • 4 points and 5 comments

reddit

Thank you! I’ve saved your comment for future use :)

Creating from scratch! I’ve posted some of the things I’ve made here: www.reddit.com/user/_denton

Reddit - Dive into anything

I’m not sure what sort of joystick you’re using, but you can get a simple analog one working without much work.

I use some hall effect ones in this keyboard:

github.com/sffubs/dactyl_manuform_gimbal

They are analog joysticks, so generate a voltage that indicates the position. The joystick code is in here:

github.com/sffubs/…/dactyl_manuform_gimbal.c

Unfortunately it’s not too well organised, but it just does an analogReadPin to get an X/Y value, scales it to the desired mouse values, and sends it using a pointing_device_task.

I am a big fan of joystick pointing devices, would love to see what you end up making!

GitHub - sffubs/dactyl_manuform_gimbal: Instrutions and designs for building the dactyl-manuform-gimbal keyboard

Instrutions and designs for building the dactyl-manuform-gimbal keyboard - GitHub - sffubs/dactyl_manuform_gimbal: Instrutions and designs for building the dactyl-manuform-gimbal keyboard

GitHub