Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #92 from erikyuzwa/patch-1

Explicitly cast int to Boolean to resolve incompatible type errors as mentioned in Issue #59
  • Loading branch information...
commit 0967c4fea1379d327492ffdb210165e68aebf070 2 parents 79ba886 + fc0b5e9
Alan Hazelden Draknek authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 net/flashpunk/utils/Input.as
4 net/flashpunk/utils/Input.as
View
@@ -151,7 +151,7 @@
}
return false;
}
- return (input < 0) ? _pressNum : _press.indexOf(input) >= 0;
+ return (input < 0) ? Boolean(_pressNum): _press.indexOf(input) >= 0;
}
/**
@@ -172,7 +172,7 @@
}
return false;
}
- return (input < 0) ? _releaseNum : _release.indexOf(input) >= 0;
+ return (input < 0) ? Boolean(_releaseNum) : _release.indexOf(input) >= 0;
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.