FreeJoy-Team / FreeJoy

STM32F103 USB HID game device controller with flexible configuration
GNU General Public License v3.0
760 stars 142 forks source link

Feature Request: Fast Encoder mapped to Mouse Scroll? #238

Open SK-Elec opened 3 months ago

SK-Elec commented 3 months ago

Is it possible to enumerate as mouse and enable fast encoder to act as mouse scroll due to poor speed of joystick button presses?

Using normal encoder in FreeJoy, the joystick button presses don't register encoder pulses very quickly. Fast encoder is not able to be mapped to joystick button presses, however I don't think that will help all that much.

I've been working on a similar project using an arduino Leonardo and the Arduino Joystick library along with arduino mouse libraries. I ran into a problem with leonardo not working fast enough when sending the joystick button presses so I added the mouse library and sent scroll commands with the encoder pulses instead which registered very fast (i could spin the encoder quickly and it would register all pulses). I then came across the FreeJoy project and seeing how developed it was have switched to this due to excellent configuration and axis mapping options. I've had a good look throught the code, but thought I'd float the idea here first before getting stuck into figuring out where to start.