Skip to content

Commit

Permalink
fix: upgraded inputtino to fix DualSense native input
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Feb 1, 2025
1 parent 722191c commit ee95f40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if (UNIX AND NOT APPLE)
FetchContent_Declare(
inputtino
GIT_REPOSITORY https://github.com/games-on-whales/inputtino.git
GIT_TAG 5d4b8b2)
GIT_TAG 311fd2d)
FetchContent_MakeAvailable(inputtino)
endif ()

Expand Down
4 changes: 2 additions & 2 deletions tests/platforms/linux/uhid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ TEST_CASE("Create PS5 pad with CONTROLLER_ARRIVAL", "[UHID]") {

control::handle_input(session, {}, &motion_pkt);
auto events = fetch_events_debug(motion_dev);
REQUIRE(events.size() == 5);
REQUIRE(events.size() >= 5);
// TODO: seems that I only get MSC_TIMESTAMP here
//
// REQUIRE_THAT(libevdev_event_type_get_name(events[0]->type), Equals("EV_ABS"));
Expand Down Expand Up @@ -209,7 +209,7 @@ TEST_CASE("Create PS5 pad with CONTROLLER_ARRIVAL", "[UHID]") {

for (auto &event : udev_events) {
REQUIRE_THAT(event["ACTION"], Equals("add"));
REQUIRE_THAT(event["DEVPATH"], StartsWith("/devices/virtual/misc/uhid/0003:054C"));
REQUIRE_THAT(event["DEVPATH"], StartsWith("/devices/virtual/misc/uhid/0005:054C"));
if (event["SUBSYSTEM"] == "input") {
REQUIRE_THAT(event["DEVNAME"], ContainsSubstring("/dev/input/"));
} else if (event["SUBSYSTEM"] == "hidraw") {
Expand Down

0 comments on commit ee95f40

Please sign in to comment.