diff options
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); |