Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix right mouse button detection for state.firealt #64

Merged
merged 1 commit into from

2 participants

@bmeck

See:

http://www.quirksmode.org/js/events_properties.html#button

IE is just broken around this (and .button) and will need fixing in kb-controls upstream:

http://msdn.microsoft.com/en-us/library/ie/ff974884(v=vs.85).aspx

@maxogden maxogden merged commit 9a826a8 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 13, 2013
  1. @bmeck
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
4 index.js
@@ -282,7 +282,7 @@ Game.prototype.defaultButtons = {
, 'S': 'backward'
, 'D': 'right'
, '<mouse 1>': 'fire'
-, '<mouse 2>': 'firealt'
+, '<mouse 3>': 'firealt'
, '<space>': 'jump'
, '<shift>': 'crouch'
, '<control>': 'alt'
@@ -666,4 +666,4 @@ Game.prototype.handleChunkGeneration = function() {
// teardown methods
Game.prototype.destroy = function() {
clearInterval(this.timer)
-}
+}
Something went wrong with that request. Please try again.