[PR #17] [MERGED] Fix PS gyro for values at the boundaries #26

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

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/inputtino/pull/17
Author: @ABeltramo
Created: 10/28/2024
Status: ✅ Merged
Merged: 11/14/2024
Merged by: @ABeltramo

Base: stable ← Head: fix/motion-value-clamping


📝 Commits (3)

  • a7e4448 clamp at short int boundaries, drop bitwise sign
  • a1eda26 tests: added unit tests for problematic values
  • b151616 refactor: using clamp instead of manual IFs

📊 Changes

2 files changed (+28 additions, -7 deletions)

View changed files

📝 src/uhid/joypad_ps5.cpp (+6 -5)
📝 tests/testJoypads.cpp (+22 -2)

📄 Description

see: https://github.com/LizardByte/Sunshine/issues/3247


🔄 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/17 **Author:** [@ABeltramo](https://github.com/ABeltramo) **Created:** 10/28/2024 **Status:** ✅ Merged **Merged:** 11/14/2024 **Merged by:** [@ABeltramo](https://github.com/ABeltramo) **Base:** `stable` ← **Head:** `fix/motion-value-clamping` --- ### 📝 Commits (3) - [`a7e4448`](https://github.com/games-on-whales/inputtino/commit/a7e44486fc8a6566f65a7f2798d6c588a7136b2c) clamp at short int boundaries, drop bitwise sign - [`a1eda26`](https://github.com/games-on-whales/inputtino/commit/a1eda26c4bdf1626c44ffe81214e846429b43a75) tests: added unit tests for problematic values - [`b151616`](https://github.com/games-on-whales/inputtino/commit/b151616bdb82b7877aeef9bad84608ff6a1315c1) refactor: using clamp instead of manual IFs ### 📊 Changes **2 files changed** (+28 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/uhid/joypad_ps5.cpp` (+6 -5) 📝 `tests/testJoypads.cpp` (+22 -2) </details> ### 📄 Description see: https://github.com/LizardByte/Sunshine/issues/3247 --- <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:25 +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#26
No description provided.