Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second sdl gamepad not working for NES on RPi #151

Closed
tregota opened this issue Mar 10, 2013 · 1 comment
Closed

Second sdl gamepad not working for NES on RPi #151

tregota opened this issue Mar 10, 2013 · 1 comment

Comments

@tregota
Copy link

tregota commented Mar 10, 2013

Sorry if I'm too far off here.
I have two RetroUSB.com RetroPad NES controllers and run RetroArch on Raspberry Pi.
The first controller works fine but the second doesn't do anything.
It's configured correctly as far as I know and I've gone as far as to put some logging into the function that polls the controllers and it does poll the second controller and also recognize button presses. I'm not sure where to go from there though.
Any ideas?

=== Build =======================================
Compiler: GCC (4.6.3) 32-bit

Built: Mar 9 2013

RetroArch: Loading default config.
RetroArch: Looking for config in: "/home/zx/.config/retroarch/retroarch.cfg".
RetroArch: Looking for config in: "/home/zx/.retroarch.cfg".
=== Config ===
system_directory = "/roms/system"
input_driver = "sdl"
input_enable_hotkey_btn = "2"
input_exit_emulator_btn = "3"
input_player1_joypad_index = "0"
input_player1_a_btn = "1"
input_player1_b_btn = "0"
input_player1_start_btn = "3"
input_player1_select_btn = "2"
input_player1_left_axis = "-0"
input_player1_up_axis = "-1"
input_player1_right_axis = "+0"
input_player1_down_axis = "+1"
input_player2_joypad_index = "1"
input_player2_a_btn = "1"
input_player2_b_btn = "0"
input_player2_start_btn = "3"
input_player2_select_btn = "2"
input_player2_left_axis = "-0"
input_player2_up_axis = "-1"
input_player2_right_axis = "+0"
input_player2_down_axis = "+1"
=== Config end ===
RetroArch: Loading dynamic libretro from: "/usr/lib/libretro-fceu.so"
RetroArch: Version of libretro API: 1
RetroArch: Compiled against API: 1
RetroArch: Loading ROM file: /roms/nes/Chip 'N Dale - Rescue Rangers.nes.
RetroArch: ROM loading skipped. Implementation will load it on its own.
RetroArch: Set audio input rate to: 31960.62 Hz.
RetroArch: Adjusting aspect ratio to 1.07
RetroArch: Video @ 768x720
RetroArch [WARN] :: 0RGB1555 pixel format is deprecated, and will be slower. For 15/16-bit, RGB565 format is preferred.
RetroArch: [VC/EGL]: Initializing...
RetroArch: Found GL context: videocore
RetroArch: Detecting screen resolution 1920x1080.
RetroArch: RetroArch : FCEUmm r88 (SVN).
RetroArch: Querying GL extension: BGRA8888 => exists
RetroArch: [GL]: BGRA8888 extension found for GLES.
RetroArch: GL: Using resolution 1920x1080
RetroArch [WARN] :: [GL]: Stock GLSL shaders will be used.
RetroArch: Found GLSL vertex shader.
RetroArch: Shader log: Compiled
RetroArch: Found GLSL fragment shader.
RetroArch: Shader log: Compiled
RetroArch: Linking GLSL program.
RetroArch: Found GLSL vertex shader.
RetroArch: Shader log: Compiled
RetroArch: Found GLSL fragment shader.
RetroArch: Shader log: Compiled
RetroArch: Linking GLSL program.
RetroArch: GL: Loaded 1 program(s).
RetroArch: Querying EGL extension: KHR_image => exists
RetroArch: Opened Joystick: RetroUSB.com RetroPad (#0).
RetroArch: Joypad has: 2 axes, 8 buttons, 0 hats.
RetroArch: Opened Joystick: RetroUSB.com RetroPad (#1).
RetroArch: Joypad has: 2 axes, 8 buttons, 0 hats.
RetroArch: Found joypad driver: "sdl".
RetroArch: Using font rendering backend: freetype.
RetroArch: ALSA: Using signed 16-bit format.
RetroArch: ALSA: Period size: 384 frames
RetroArch: ALSA: Buffer size: 1536 frames
RetroArch: Sinc resampler [C]
RetroArch: SINC params (8 phase bits, 16 taps).
RetroArch: RetroArch : FCEUmm r88 (SVN).
RetroArch: Joypad 0 pressed 2.
RetroArch: Joypad 0 pressed 2.
[...]
RetroArch: Joypad 0 pressed 3.
RetroArch: Joypad 0 pressed 3.
RetroArch: RetroArch : FCEUmm r88 (SVN) || FPS: 59.5 || Frames: 256.
RetroArch: Joypad 0 pressed 0.
RetroArch: RetroArch : FCEUmm r88 (SVN) || FPS: 60.0 || Frames: 512.
RetroArch: Joypad 1 pressed 0.
RetroArch: Joypad 1 pressed 0.
[...]
RetroArch: Joypad 1 pressed 0.
RetroArch: Joypad 1 pressed 0.
RetroArch: RetroArch : FCEUmm r88 (SVN) || FPS: 59.5 || Frames: 768.
RetroArch: Joypad 1 pressed 1.
RetroArch: Joypad 1 pressed 1.
[...]
RetroArch: Joypad 0 pressed 2.
RetroArch: Joypad 0 pressed 2.
RetroArch: Joypad 0 pressed 3.
RetroArch: Joypad 0 pressed 3.
RetroArch: Saving regular SRAM.
RetroArch: SRM: /roms/nes/Chip 'N Dale - Rescue Rangers.srm
RetroArch: RTC: /roms/nes/Chip 'N Dale - Rescue Rangers.rtc
RetroArch: Average audio buffer saturation: 49.41 %, standard deviation (percentage points): 16.16 %.
RetroArch: Amount of time spent close to underrun: 3.80 %. Close to blocking: 0.22 %.
RetroArch: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.

@Themaister
Copy link
Contributor

You're using an old FCEUmm core. Try to build from Git. I believe there were some 2-player input issues which were fixed.

@tregota
Copy link
Author

tregota commented Mar 10, 2013

Ah thanks, that did the trick!
I'm using chameleonpi and it had the latest code from git but still had and referenced an old version.

@tregota tregota closed this as completed Mar 10, 2013
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

No branches or pull requests

2 participants