Skip to content

Add support for Raphnet adapters#593

Open
haribo39 wants to merge 4 commits intosm64pc:nightlyfrom
haribo39:raphnet
Open

Add support for Raphnet adapters#593
haribo39 wants to merge 4 commits intosm64pc:nightlyfrom
haribo39:raphnet

Conversation

@haribo39
Copy link

Add support for the direct controller access feature of N64 to USB Raphnet adapters (version 3+).
To enable, install the hidapi package and compile with flag CONTROLLER_API=RAPHNET.

@laforcem
Copy link

Thank you so much for this patch, works great for me. I was tearing my hair out trying to figure out why my Raphnet adapter was working in Windows and Steam but not sm64ex. Some extra color for anyone else new to MSYS2: before installing, run:

pacman -S mingw-w64-x86_64-hidapi

@fgsfdsfgs
Copy link
Collaborator

Isn't the HIDAPI support that's in SDL2 enough for this? You might have to rebuild libsdl2 with HIDAPI enabled if it's not enabled by default on Windows builds, but it should work with Raphnet controllers.

@ElBateSoli
Copy link

tutorial plz :C

@haribo39
Copy link
Author

haribo39 commented Mar 5, 2026

If you're on 64-bit Windows, first install HIDAPI by running:

pacman -S mingw-w64-x86_64-hidapi

Then to compile with Raphnet support enabled, in the sm64ex directory run:

make -j CONTROLLER_API=RAPHNET

@haribo39
Copy link
Author

haribo39 commented Mar 5, 2026

This patch is essentially just the RaphnetRaw emulator input plugin with some frontend code to get it to work with sm64ex. This plugin allows the game to read the controller inputs the same way an n64 would, which means that you don't need to set up button mappings and the stick values are perfectly accurate.

Without this patch I was only get my Raphnet adapter to work with sm64ex by using a program like x360ce.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants