tests: stub VR pad ports in controller settings tests (#1741)

* tests: stub VR pad ports in controller settings tests

#1726 added PadVrPortHand/PadVrPort/PadVrClose calls to controller.cpp,
which controller_settings_tests #includes directly, breaking its link
(the full-emulator tests pick up libs/padVr.cpp via glob and are fine).
Stub the three VR entry points as unavailable, matching the file's
existing DualSenseHaptics fakes.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>

* tests: stub PadVrCheckHandle for the Windows controller settings link

---------

Co-authored-by: Matthew Hurley <171001439+theantipopau@users.noreply.github.com>
Co-authored-by: Codebuff <noreply@codebuff.com>
Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
Matthew Hurley
2026-10-20 11:22:27 +10:00
committed by GitHub
parent fa8216c4d9
commit 992a83003d
+8
View File
@@ -90,6 +90,14 @@ void Delay(Uint32) {}
#undef SDL_CloseGamepad
#undef SDL_Delay
namespace Libs::Controller {
// No virtual headset in these tests (padVr.cpp is not linked here).
int PadVrPortHand(int) { return -1; }
int PadVrPort(int, int, int, bool) { return PAD_ERROR_INVALID_ARG; }
int PadVrCheckHandle(int) { return PAD_ERROR_INVALID_HANDLE; }
int PadVrClose(int) { return PAD_ERROR_INVALID_HANDLE; }
} // namespace Libs::Controller
namespace Libs::Controller::DualSenseHaptics {
bool SetVibration(int, uint8_t large_motor, uint8_t small_motor, uint32_t duration_ms) {
haptics.push_back({large_motor, small_motor, duration_ms});