Skip to content

feat(libSceSystemGesture): implement sceSystemGestureGetTouchRecognizerInformation - #4016

Closed
johandavidcm wants to merge 1 commit into
boykopovar:mainfrom
johandavidcm:feat/system-gesture-recognizer-information
Closed

johandavidcm wants to merge 1 commit into
boykopovar:mainfrom
johandavidcm:feat/system-gesture-recognizer-information

Conversation

@johandavidcm

Copy link
Copy Markdown
Contributor

What

Implements sceSystemGestureGetTouchRecognizerInformation. sceSystemGestureCreateTouchRecognizer now stores the recognizer type and rectangle in the title's SceSystemGestureTouchRecognizer buffer, and sceSystemGestureUpdateTouchRecognizerRectangle updates the rectangle of a created recognizer. The information call returns both, with updated_time 0 because no touch event is ever recognized.

A recognizer that was not created through sceSystemGestureCreateTouchRecognizer, or one created without a rectangle, throws: no reference gives the console's error codes. shadPS4 and sharpemu only stub this function, and KytyPS5, prosper, SharpProspero and OpenAGC do not have it. sceSystemGestureGetPrimitiveTouchEventByPrimitiveID and sceSystemGestureGetTouchEventByEventID still throw, because their not-found error code is unknown. Both assumptions are recorded in TechnicalDebt.

The existing test passed a 4-byte int as the recognizer; it now uses a buffer the size of SceSystemGestureTouchRecognizer.

Tested

Ubuntu 26.04 (WSL2), GCC 15.2.0, Release: ctest -R guest_system_gesture passes; the changed files build without warnings. No title or homebrew.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

@MarcZX10

Copy link
Copy Markdown
Contributor

Independent focused validation on the current PR head bcb789fc: Ubuntu/Linux, GCC 12.2.0, Release, Ninja. The guest_system_gesture_tests target built successfully and ctest --test-dir /tmp/AnyPS5-pr4016-build -R ^guest_system_gesture$ --output-on-failure passed 1/1. This confirms the new test path on Linux; I did not run the full suite or a title.

@johandavidcm
johandavidcm force-pushed the feat/system-gesture-recognizer-information branch from bcb789f to e60af43 Compare October 11, 2026 21:43
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4064 core/libs/prx/libSceSystemGesture/Export.cpp L98-102

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Closing: no title reaches sceSystemGestureGetTouchRecognizerInformation on main, and until one does the throw is the right behaviour. Please reopen with the title ID and the log line if you find one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants