[PR #1410] [MERGED] Controller: Add method for reading analog input bytes #499

Open
opened 2026-01-29 19:08:11 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stenzek/duckstation/pull/1410
Author: @ggrtk
Created: 1/7/2021
Status: Merged
Merged: 1/8/2021
Merged by: @stenzek

Base: masterHead: get-analog-input-bytes


📝 Commits (1)

  • 5ff3299 Controller: Add method for reading analog input bytes

📊 Changes

8 files changed (+36 additions, -0 deletions)

View changed files

📝 src/core/analog_controller.cpp (+6 -0)
📝 src/core/analog_controller.h (+1 -0)
📝 src/core/analog_joystick.cpp (+6 -0)
📝 src/core/analog_joystick.h (+1 -0)
📝 src/core/controller.cpp (+5 -0)
📝 src/core/controller.h (+3 -0)
📝 src/core/negcon.cpp (+11 -0)
📝 src/core/negcon.h (+3 -0)

📄 Description

Requested by @PugsyMAME.

This will return the analog stick inputs even when the Analog Controller type is in digital mode. Byte order, starting at least significant byte, is RightX, RightY, LeftX, LeftY.


🔄 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/stenzek/duckstation/pull/1410 **Author:** [@ggrtk](https://github.com/ggrtk) **Created:** 1/7/2021 **Status:** ✅ Merged **Merged:** 1/8/2021 **Merged by:** [@stenzek](https://github.com/stenzek) **Base:** `master` ← **Head:** `get-analog-input-bytes` --- ### 📝 Commits (1) - [`5ff3299`](https://github.com/stenzek/duckstation/commit/5ff3299384c435549805cbd45f6de5126dbad9ab) Controller: Add method for reading analog input bytes ### 📊 Changes **8 files changed** (+36 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/core/analog_controller.cpp` (+6 -0) 📝 `src/core/analog_controller.h` (+1 -0) 📝 `src/core/analog_joystick.cpp` (+6 -0) 📝 `src/core/analog_joystick.h` (+1 -0) 📝 `src/core/controller.cpp` (+5 -0) 📝 `src/core/controller.h` (+3 -0) 📝 `src/core/negcon.cpp` (+11 -0) 📝 `src/core/negcon.h` (+3 -0) </details> ### 📄 Description Requested by @PugsyMAME. This will return the analog stick inputs even when the Analog Controller type is in digital mode. Byte order, starting at least significant byte, is RightX, RightY, LeftX, LeftY. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 19:08:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/duckstation#499