hidapi: add trigger rumble for the Flydigi Vader 4 Pro (#16747)

The Vader 4 Pro has a separate motor in each trigger. The V1 haptic
command already reserves two bytes after the grip motors, and the
reference implementation drives them as left and right trigger levels,
scaled from 16 bits the same way as the grips.

Extend the existing V1 rumble packet to carry all four motors and
advertise trigger rumble for the Vader 4 Pro. The Vader 5 Pro support
added in c821196 covers the same hardware feature over the V2 protocol.

Tested on a Vader 4 Pro, via the 2.4 Ghz dongle.

Signed-off-by: Rafael Julio <development@rafifos.dev>
1 file changed
tree: b63c9c634f2a5bda4e0abbfce2b5750c13adf09c
  1. .github/
  2. android-project/
  3. build-scripts/
  4. cmake/
  5. docs/
  6. examples/
  7. include/
  8. openharmony-project/
  9. src/
  10. test/
  11. VisualC/
  12. VisualC-GDK/
  13. wayland-protocols/
  14. Xcode/
  15. .clang-format
  16. .clang-tidy
  17. .editorconfig
  18. .gitignore
  19. .wikiheaders-options
  20. AGENTS.md
  21. Android.mk
  22. BUGS.txt
  23. CLAUDE.md
  24. CMakeLists.txt
  25. CREDITS.md
  26. INSTALL.md
  27. LICENSE.txt
  28. README.md
  29. WhatsNew.txt
README.md

Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.

You can find the latest release and additional information at: https://www.libsdl.org/

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)