Project

General

Profile

Actions

Emulator Issues #9543

closed

Feature Request: Provide a way for third-party programs to access controller inputs via libusb

Added by Practical_TAS over 8 years ago. Updated over 7 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Feature request
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

Not game-specific

Game ID? (right click the game in the game list, properties, info tab)

N/A

MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)

N/A

What's the problem? Describe what went wrong.

Padpyght, an open-source gamepad visualization tool, can hook into generic gamepad drivers to display inputs in real time while playing on Dolphin. However, when using the official Nintendo adapter (ie Direct Connect), Dolphin uses libusb_claim_interface() and prevents Padpyght from being able to access controller inputs. Is it possible for Dolphin to open an interface to allow access to input data?

What steps will reproduce the problem?

N/A

Which versions of Dolphin did you test on? Does using an older version of Dolphin solve your issue? If yes, which versions of Dolphin used to work?

Tested on multiple builds of 4.0.

What are your PC specifications? (CPU, GPU, Operating System, more)

N/A

Is there any other relevant information? (e.g. logs, screenshots,
configuration files)

A direct link to the comment on this issue in the Padpyght issue tracker, from the creator of Padpyght, can be found here: https://github.com/lifning/padpyght/issues/9#issuecomment-141880325
Other comments on that issue offer some background information on the topic.

Actions #1

Updated by mathieui over 8 years ago

  • Issue type changed from Bug to Feature request
Actions #2

Updated by Mikemk over 8 years ago

I think this should be implemented as a custom driver, not as part of dolphin, as it would interfere with people using the mayflash adapter (eg: me)

Actions #3

Updated by leoetlino over 7 years ago

  • Status changed from New to Invalid

This is impossible. Dolphin needs to claim the device to be able to communicate with it.

Actions #4

Updated by JosJuice over 7 years ago

It would be possible for us to create a new protocol that we use to send out copies of the controller inputs that we get from InputCommon. I'm not sure if we want to have that in Dolphin, though... If we get some kind of scripting functionality in Dolphin in the future, it should be possible to implement an interface like that in scripting instead.

Actions

Also available in: Atom PDF