Skip to content

Commit

Permalink
Fix button accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
kg committed Sep 6, 2012
1 parent a849f48 commit 974f5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/JSIL.XNACore.js
Original file line number Diff line number Diff line change
Expand Up @@ -3683,7 +3683,7 @@ JSIL.ImplementExternals("Microsoft.Xna.Framework.Input.GamePadButtons", function

var makeButtonGetter = function (buttonName) {
return function getButtonState () {
var key = buttons[buttonName];
var key = buttons[buttonName].valueOf();
return this._state[key] || released;
};
}
Expand Down

0 comments on commit 974f5f1

Please sign in to comment.