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:
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 297ca16db..510194f1d 100644
--- a/runtime/test/gameinput_probe.cpp
+++ b/runtime/test/gameinput_probe.cpp
@@ -27,8 +27,10 @@ std::vector<IGameInputDevice*> g_devices;
27 27
28void CALLBACK on_device(GameInputCallbackToken, void*, IGameInputDevice* device, uint64_t, uint32_t current, uint32_t previous) { 28void CALLBACK on_device(GameInputCallbackToken, void*, IGameInputDevice* device, uint64_t, uint32_t current, uint32_t previous) {
29 const GameInputDeviceInfo* i = device->GetDeviceInfo(); 29 const GameInputDeviceInfo* i = device->GetDeviceInfo();
30 std::printf("\n%s %s (%04x:%04x) motors=0x%x\n", (current & GameInputDeviceConnected) ? "connected " : "disconnected", 30 std::printf("\n%s %s (%04x:%04x) motors=0x%x forcefeedback=%u haptic=%u\n",
31 i->displayName ? i->displayName->data : "?", i->vendorId, i->productId, i->supportedRumbleMotors); 31 (current & GameInputDeviceConnected) ? "connected " : "disconnected",
32 i->displayName ? i->displayName->data : "?", i->vendorId, i->productId, i->supportedRumbleMotors,
33 i->forceFeedbackMotorCount, i->hapticFeedbackMotorCount);
32 // Raw HID (RT-175): the report tables read from the pad's HID report descriptor, or why there are none. 34 // Raw HID (RT-175): the report tables read from the pad's HID report descriptor, or why there are none.
33 if (current & GameInputDeviceConnected) { 35 if (current & GameInputDeviceConnected) {
34 if (!(current & GameInputDeviceRawIoEnabled)) { 36 if (!(current & GameInputDeviceRawIoEnabled)) {