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:
authorBora Sevim <sevimbora@gmail.com>2026-11-22 23:05:47 +0300
committerBora Sevim <sevimbora@gmail.com>2026-11-22 23:05:47 +0300
commit76d1add3dab43a082332579ca33f3f039746ce6b (patch)
tree2b05cfb8571fa15ce31e0da8941533ed874218f7 /runtime/test/gameinput_probe.cpp
parent364fdcbd28feb1708fd28b4727b3cc8f4a1ad1a7 (diff)
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
Merge origin/main into rt-175-raw-hid
Keep RT-160's force-feedback interface and tests next to the raw HID ones. The raw HID test fakes are renamed (FakeRawHid, raw_*) so they no longer clash with the haptic fakes. The API table gets one IGameInputDevice row with both feature sets; the stale duplicate IGameInputDevice and IGameInputDispatcher rows are dropped.
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)) {