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!
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
Stenography keyboards sometimes come with a camera tripod screw in the base. That allows you to mount the keyboard at lap height in a stable way.
For example: docs.stenokeyboards.com/customize/tripod.html