upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_probe.cpp
diff options
context:
space:
mode:
authorlumenpearson <139921639+lumenpearson@users.noreply.github.com>2026-11-22 23:25:25 +0300
committerlumenpearson <139921639+lumenpearson@users.noreply.github.com>2026-11-22 23:25:25 +0300
commitf324bfbc71f0eabf9515bcd7c8b7c9e4b89448bf (patch)
tree2db4ae6fd5412abbbc3e1894f8bc7ed88c8ae514 /runtime/test/gameinput_probe.cpp
parent18380c6d2baf1422109b369860a6e8be5e185b05 (diff)
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
Merge upstream main into SHADER-537
Diffstat (limited to 'runtime/test/gameinput_probe.cpp')
-rw-r--r--runtime/test/gameinput_probe.cpp6
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
27void CALLBACK on_device(GameInputCallbackToken, void*, IGameInputDevice* device, uint64_t, uint32_t current, uint32_t previous) { 27void 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);