Permalink
Browse files

Inverted UP and DOWN key actions

  • Loading branch information...
1 parent bf0b49d commit 35ad3475a83491820b9353ea4a9fa0fa2f63b1a7 @jblancocano jblancocano committed Dec 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/sketch.js
View
4 js/sketch.js
@@ -325,10 +325,10 @@ sketch.attachFunction = function (processing) {
if (processing.keyCode == processing.LEFT) {
transX = Math.max(-2000, transX - 20);
}
- if (processing.keyCode == processing.UP) {
+ if (processing.keyCode == processing.DOWN) {
transY = Math.max(-2000, transY - 20);
}
- if (processing.keyCode == processing.DOWN) {
+ if (processing.keyCode == processing.UP) {
transY = Math.min(2000, transY + 20);
}
};

0 comments on commit 35ad347

Please sign in to comment.