Skip to content

Commit 94975dd

Browse files
committed
map Y to B for international keyboard, fix bfirsh#9
1 parent 8692a94 commit 94975dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/keyboard.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ JSNES.Keyboard.prototype = {
4545
setKey: function(key, value) {
4646
switch (key) {
4747
case 88: this.state1[this.keys.KEY_A] = value; break; // X
48+
case 89: this.state1[this.keys.KEY_B] = value; break; // Y (Central European keyboard)
4849
case 90: this.state1[this.keys.KEY_B] = value; break; // Z
4950
case 17: this.state1[this.keys.KEY_SELECT] = value; break; // Right Ctrl
5051
case 13: this.state1[this.keys.KEY_START] = value; break; // Enter

0 commit comments

Comments
 (0)