em-fceux version: 1.0.3
What goes wrong:
I’m using a fork of em-fceux-site in order to embed my NES games on itch.io But the latest game I made was for two players, and I just found out that I can’t make it work for the second player. Then I tried running both my game and Bubble Bobble on the original em-fceux-site (https://tsone.kapsi.fi/em-fceux/) and they didn’t work either. I’ve selected “Controller” for Port 2 in System settings, then tried setting keyboard controls for Controller 2 in Input Bindings, but the games seemed to ignore this. Input bindings for Controller 1 work just fine, though.
Steps to reproduce the bug:
- Open settings, in “System settings”, select “Controller” for Port 2, then close settings.
- Open a two-player game rom.
- Open Input Bindings, set some keyboard buttons for “Controller 2”, then close Input Bindings
- Start a two-player game. The second player won’t react to any input.
Browser: Firefox 81.0 / Chrome 85.0
OS: Windows 10
Comments (5)
-
reporter -
reporter - marked as minor
-
reporter I’ll just use
return this.bitsForController('2') << 8 | this.bitsForController('1');
for now
-
repo owner Thanks for debugging! Good you found the cause. I’ll fix this shortly on the new version of the site.
-
repo owner - changed status to resolved
- Log in to comment
While trying to debug I found this in em-fceux-site’s src/input.ts:
private updateControllers() {
// TODO: handle all active controllers
return this.bitsForController('1');
}