raphnet / pj64raphnetraw

PJ64 input plugin with direct N64 controller access for raphnet adapters
http://www.raphnet.net/programmation/mupen64plus-input-raphnetraw/index_en.php
16 stars 7 forks source link

pj64 input plugin with direct N64 controller access for raphnet adapters

This input plugin for project64 uses the direct controller access feature offered by raphnet N64 to USB adapters (versions 3 and up) to let the emulated game communicate with the controllers directly.

Project homepage

License

This project is licensed under the terms of the GNU General Public License, version 2. Source code is available on the project homepage and on GitHub.

Using the plugin

After compiling (or using the binary distribution) two .DLL files must be copied to specific locations.

  1. Copy the following file to "Project64 installation directory"/Plugin/Input:

    • pj64raphnetraw.dll
    • pj64raphnetraw_ports1and4.dll
  2. Copy the following file to "Project64 installation directory" (i.e. The one with a .EXE)

    • libhidapi-0.dll

Then in project64, go to menu bar -> Options -> Settings -> Plugins. Next in the Input (controller) plugin dropdown, select "raphnetraw for Project64 version xx.xx". Apply and exit the dialog box.

Building the plugin

The plugin is compiled using mingw-w64 under Linux.

System requirements

A Linux system such as Debian with the following packages installed: (non-exhaustive list)

Environment

Directory layout

An HIDAPI build is expected in ../hidapi. i.e. The following directory structure is required:

preparing the hidapi build

The plugin makefile assumes the following:

hidapi can be obtained like this:

$ cd ...somedir
$ git clone https://github.com/signal11/hidapi.git

And then to compile it:

cd ...somedir/hidapi
./bootstrap
./configure --host i686-w64-mingw32
make

Compilation

$ cd .../somedir/
$ cd pj64raphnetraw/src
$ make