[PR #30] [MERGED] feat(build): fix compilation on BSD #37

Closed
opened 2026-10-15 12:51:30 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/inputtino/pull/30
Author: @ReenigneArcher
Created: 7/8/2025
Status: ✅ Merged
Merged: 7/8/2025
Merged by: @ABeltramo

Base: stable ← Head: fix/types/use-standard-types


📝 Commits (2)

  • 6b26593 fix(types): replace __u16 with uint16_t
  • b8d3f35 feat: implemented basic uinput PS joypad and toggle in the Cmake options

📊 Changes

9 files changed (+764 additions, -347 deletions)

View changed files

📝 CMakeLists.txt (+21 -6)
📝 src/uhid/include/uhid/uhid.hpp (+2 -2)
➕ src/uinput/include/inputtino/protected_ps5_types.hpp (+7 -0)
➕ src/uinput/joypad_ps.cpp (+202 -0)
📝 src/uinput/joypad_utils.hpp (+2 -2)
📝 tests/CMakeLists.txt (+5 -0)
📝 tests/testCAPI.cpp (+1 -1)
📝 tests/testJoypads.cpp (+54 -336)
➕ tests/testUHID.cpp (+470 -0)

📄 Description

This PR replaces __u16 with std::uint16_t. The motivation for this PR is I am investigating compiling Sunshine on FreeBSD (https://github.com/LizardByte/Sunshine/pull/4049). FreeBSD does not have linux/types.h. I found that using uint16_t does compile past that undefined type error; however, I am not 100% if this is the proper fix. I have an alternate here (github.com/ReenigneArcher/inputtino@e5253e7187) if that would be preferred.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/games-on-whales/inputtino/pull/30 **Author:** [@ReenigneArcher](https://github.com/ReenigneArcher) **Created:** 7/8/2025 **Status:** ✅ Merged **Merged:** 7/8/2025 **Merged by:** [@ABeltramo](https://github.com/ABeltramo) **Base:** `stable` ← **Head:** `fix/types/use-standard-types` --- ### 📝 Commits (2) - [`6b26593`](https://github.com/games-on-whales/inputtino/commit/6b265932d0a9b919db73fd1c13750242e00601d4) fix(types): replace `__u16` with `uint16_t` - [`b8d3f35`](https://github.com/games-on-whales/inputtino/commit/b8d3f3595fafde3351c3d3fd7d5b87907537392c) feat: implemented basic uinput PS joypad and toggle in the Cmake options ### 📊 Changes **9 files changed** (+764 additions, -347 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+21 -6) 📝 `src/uhid/include/uhid/uhid.hpp` (+2 -2) ➕ `src/uinput/include/inputtino/protected_ps5_types.hpp` (+7 -0) ➕ `src/uinput/joypad_ps.cpp` (+202 -0) 📝 `src/uinput/joypad_utils.hpp` (+2 -2) 📝 `tests/CMakeLists.txt` (+5 -0) 📝 `tests/testCAPI.cpp` (+1 -1) 📝 `tests/testJoypads.cpp` (+54 -336) ➕ `tests/testUHID.cpp` (+470 -0) </details> ### 📄 Description This PR replaces `__u16` with `std::uint16_t`. The motivation for this PR is I am investigating compiling Sunshine on FreeBSD (https://github.com/LizardByte/Sunshine/pull/4049). FreeBSD does not have `linux/types.h`. I found that using `uint16_t` does compile past that undefined type error; however, I am not 100% if this is the proper fix. I have an alternate here (https://github.com/ReenigneArcher/inputtino/commit/e5253e7187d99c83b58c8e3f1480dcb956a3aa13) if that would be preferred. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 12:51:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/inputtino#37
No description provided.