Check to make sure the Windows joystick device has buttons and axes

This reverts commit e5a15f94e2f1a8fbbffb25ea9932cda9679a68fd.

It turns out removing this check allows mice like the ROG PUGIO II to show up as game controllers. We need to find a different way to differentiate between gaming mice and pedals.

Since these mice show up as controllers, and potentially causing games to use them instead of real controllers, we'll go ahead revert this change for now.

Reopens https://github.com/libsdl-org/SDL/issues/8227

(cherry picked from commit ad0af488837e44cbea0f0eab3b2f73b50a74bff4)
(cherry picked from commit 20ecd2afcb6a4ef6acb39505d307d42390e6a345)
1 file changed
tree: 2d3fea73af0f3b5fd3bb96ebfef3da405d7e6c94
  1. .github/
  2. acinclude/
  3. android-project/
  4. android-project-ant/
  5. build-scripts/
  6. cmake/
  7. docs/
  8. include/
  9. mingw/
  10. src/
  11. test/
  12. VisualC/
  13. VisualC-GDK/
  14. VisualC-WinRT/
  15. visualtest/
  16. wayland-protocols/
  17. Xcode/
  18. Xcode-iOS/
  19. .clang-format
  20. .editorconfig
  21. .gitignore
  22. .wikiheaders-options
  23. Android.mk
  24. autogen.sh
  25. BUGS.txt
  26. cmake_uninstall.cmake.in
  27. CMakeLists.txt
  28. configure
  29. configure.ac
  30. CREDITS.txt
  31. INSTALL.txt
  32. LICENSE.txt
  33. Makefile.in
  34. Makefile.minimal
  35. Makefile.os2
  36. Makefile.pandora
  37. Makefile.w32
  38. README-SDL.txt
  39. README.md
  40. sdl2-config-version.cmake.in
  41. sdl2-config.cmake.in
  42. sdl2-config.in
  43. sdl2.m4
  44. sdl2.pc.in
  45. SDL2.spec.in
  46. SDL2Config.cmake.in
  47. TODO.txt
  48. WhatsNew.txt
README.md

Simple DirectMedia Layer (SDL) Version 2.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md

Enjoy!

Sam Lantinga (slouken@libsdl.org)