Hey! I've been lurking in the forums for a while, but I decided to make an account now that I need to ask about this.
So I was messing round with the unlocked switch web browser by using the fiddler method to browse anywhere and tried to use JSNES... Surprisingly, it started working (even though it seems necessary to disable sound or else it just drops to 0 fps).
The problem is that controls are obviously prepared to play on PC, so I cant even press the start button to check if it's working. I opened the code to try and change the controls or something... but then I realized I don't know the codes for switch input...
This is the switch for the input (it starts on line 2027 of the code):
Anyone knows what would be the codes for the switch's joycons?
So I was messing round with the unlocked switch web browser by using the fiddler method to browse anywhere and tried to use JSNES... Surprisingly, it started working (even though it seems necessary to disable sound or else it just drops to 0 fps).
The problem is that controls are obviously prepared to play on PC, so I cant even press the start button to check if it's working. I opened the code to try and change the controls or something... but then I realized I don't know the codes for switch input...
This is the switch for the input (it starts on line 2027 of the code):
Code:
switch (key) {
//Player 1 controls
case 88: this.state1[this.keys.KEY_A] = value; break; // X
case 89: this.state1[this.keys.KEY_B] = value; break; // Y (Central European keyboard)
case 90: this.state1[this.keys.KEY_B] = value; break; // Z
case 17: this.state1[this.keys.KEY_SELECT] = value; break; // Right Ctrl
case 13: this.state1[this.keys.KEY_START] = value; break; // Enter
case 38: this.state1[this.keys.KEY_UP] = value; break; // Up
case 40: this.state1[this.keys.KEY_DOWN] = value; break; // Down
case 37: this.state1[this.keys.KEY_LEFT] = value; break; // Left
case 39: this.state1[this.keys.KEY_RIGHT] = value; break; // Right
//Player 2 controls
case 103: this.state2[this.keys.KEY_A] = value; break; // Num-7
case 105: this.state2[this.keys.KEY_B] = value; break; // Num-9
case 99: this.state2[this.keys.KEY_SELECT] = value; break; // Num-3
case 97: this.state2[this.keys.KEY_START] = value; break; // Num-1
case 104: this.state2[this.keys.KEY_UP] = value; break; // Num-8
case 98: this.state2[this.keys.KEY_DOWN] = value; break; // Num-2
case 100: this.state2[this.keys.KEY_LEFT] = value; break; // Num-4
case 102: this.state2[this.keys.KEY_RIGHT] = value; break; // Num-6
default: return true;
}
Anyone knows what would be the codes for the switch's joycons?