JibbSmart / JoyShockLibrary

Read DualSense, DualShock 4, JoyCon, and Pro Controller input on PC -- compiled for Windows, but code should work on other platforms.
Other
226 stars 42 forks source link

[Feature suggestion] Sample with motion #61

Open r57zone opened 9 months ago

r57zone commented 9 months ago

Hello, it would be great to have a simple, reference sample showcasing how to correctly work with the library. It would be nice if the sample also included mouse moving and rotation (on 3.0 can't get stable yaw, pitch, roll axes - one axis smoothly transitions to another, probably I'm doing something wrong, on 2.2.0 I got it right).

Such a sample could greatly help beginner developers easily understand and incorporate these features into their projects.

Additionally, the sample could serve as a kind of test for the library, checking its basic functions.

Thank you for your library and work.

JibbSmart commented 9 months ago

Hi @r57zone! I'd love to add a reference sample. I can't really work on it at the moment without getting permission from my employer, but for now, hopefully this code snippet is helpful.

This code is from this sample that I created while developing v3.0 (using Dear ImGui), but didn't have time to polish it enough to include: image

r57zone commented 9 months ago

This sample is just what need, thanks 👍