Article 6F8MP gamepad not working with emulator

gamepad not working with emulator

by
hedron
from LinuxQuestions.org on (#6F8MP)
The emulators in question: Nestopia(jollygood version) and Fceux. (Also, retroarch with yabause, but nevermind that it will just complicate)

Fceux had been working fine, but today it decided it doesn't want to recognize my gamepad. I deleted ~/.fceux, but the problem persists. No input from the gamepad is recognized within the fceux program. Not in the settings, are attempting to configure it, and running the game, the game doesn't respond from input. Keyboard input works perfect.

I installed jollygood with nestopia, and it works....sort of

Code:i: Core: nestopia (Nestopia JG 1.52.0)
i: Video: OpenGL 3.3.0 NVIDIA 470.199.02
i: Audio: 48000Hz Mono, Speex 3
w: Input configuration file not found: /home/madmax/.config/jollygood/input_nes.ini
i: Emulated Input 1: nespad1, Controller 1, 0 axes, 10 buttons
i: Emulated Input 2: nespad2, Controller 2, 0 axes, 10 buttons
i: Emulated Input 3: unconnected, Unconnected, 0 axes, 0 buttons
i: Emulated Input 4: unconnected, Unconnected, 0 axes, 0 buttons
i: Emulated Input 5: unconnected, Unconnected, 0 axes, 0 buttons
i: Joystick 1 Connected: usb gamepad
i: Joystick 1 Disconnected
i: Joystick 1 Connected: usb gamepad
i: Joystick 1 Disconnected
i: Joystick 1 Connected: usb gamepad
i: Joystick 1 Disconnected
i: Joystick 1 Connected: usb gamepad
i: Joystick 1 Disconnected...is the output during the game. When playing the game the controller mostly works, but the problem persists.

cat /dev/input/js0 and cat /dev/input/js1 both recognize input from respective controller. I disconnected js1 to simplify troubleshooting. But while it does recognize input, it cuts off abruptly. Like so:

Code:cat /dev/input/js0
q~
q~
q~
q~
q~
q~
q~
q~
q~
q~
q~
q~
~
~
>~
~
~
~
^~
^~
~
~
~
~
~~
~
~
&~
N~
v~
~
cat: /dev/input/js0: No such deviceLast time I played games on a linux machine was 10+ years ago, and I don't remember having these issues. Also remember different emulators that worked much better. Although, that was before system d. But I don't want this thread to turn into that discussion. Thanks.

I have a gut feeling rebooting will solve the problem, but I'm too autistic to do that and I MUST find out what's causing this.

lsusb:

Code: lsusb
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 003: ID 046d:c08b Logitech, Inc. G502 SE HERO Gaming Mouse
Bus 006 Device 002: ID 2516:0011 Cooler Master Co., Ltd. Storm Quick Fire TK 6keys
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 024: ID 0810:e501 Personal Communication Systems, Inc. SNES Gamepad
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 194f:0301 PreSonus Audio Electronics, Inc. AudioBox
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments