diff options
| author | lumenpearson <139921639+lumenpearson@users.noreply.github.com> | 2026-11-22 23:25:25 +0300 |
|---|---|---|
| committer | lumenpearson <139921639+lumenpearson@users.noreply.github.com> | 2026-11-22 23:25:25 +0300 |
| commit | f324bfbc71f0eabf9515bcd7c8b7c9e4b89448bf (patch) | |
| tree | 2db4ae6fd5412abbbc3e1894f8bc7ed88c8ae514 /runtime/test/gameinput_probe.cpp | |
| parent | 18380c6d2baf1422109b369860a6e8be5e185b05 (diff) | |
| parent | f847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff) | |
Merge upstream main into SHADER-537
Diffstat (limited to 'runtime/test/gameinput_probe.cpp')
| -rw-r--r-- | runtime/test/gameinput_probe.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/test/gameinput_probe.cpp b/runtime/test/gameinput_probe.cpp index 32ddf5d91..a56132ed5 100644 --- a/runtime/test/gameinput_probe.cpp +++ b/runtime/test/gameinput_probe.cpp | |||
| @@ -26,8 +26,10 @@ std::vector<IGameInputDevice*> g_devices; | |||
| 26 | 26 | ||
| 27 | void CALLBACK on_device(GameInputCallbackToken, void*, IGameInputDevice* device, uint64_t, uint32_t current, uint32_t previous) { | 27 | void CALLBACK on_device(GameInputCallbackToken, void*, IGameInputDevice* device, uint64_t, uint32_t current, uint32_t previous) { |
| 28 | const GameInputDeviceInfo* i = device->GetDeviceInfo(); | 28 | const GameInputDeviceInfo* i = device->GetDeviceInfo(); |
| 29 | std::printf("\n%s %s (%04x:%04x) motors=0x%x\n", (current & GameInputDeviceConnected) ? "connected " : "disconnected", | 29 | std::printf("\n%s %s (%04x:%04x) motors=0x%x forcefeedback=%u haptic=%u\n", |
| 30 | i->displayName ? i->displayName->data : "?", i->vendorId, i->productId, i->supportedRumbleMotors); | 30 | (current & GameInputDeviceConnected) ? "connected " : "disconnected", |
| 31 | i->displayName ? i->displayName->data : "?", i->vendorId, i->productId, i->supportedRumbleMotors, | ||
| 32 | i->forceFeedbackMotorCount, i->hapticFeedbackMotorCount); | ||
| 31 | if ((current & GameInputDeviceConnected) && !(previous & GameInputDeviceConnected)) { | 33 | if ((current & GameInputDeviceConnected) && !(previous & GameInputDeviceConnected)) { |
| 32 | device->AddRef(); | 34 | device->AddRef(); |
| 33 | g_devices.push_back(device); | 35 | g_devices.push_back(device); |