Browse files

rename key-pressed -> key-pressed? and mouse-pressed -> mouse-state t…

…o avoid potential conflicts with applet handler fn names.
  • Loading branch information...
1 parent 01dd2c2 commit a0147b88696a2bf9d81a49430f12cdade92790c0 @samaaron samaaron committed Mar 4, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 API.md
  2. +2 −2 src/processing/core.clj
View
4 API.md
@@ -109,7 +109,7 @@ mouseClicked() - :mouse-clicked A
mouseDragged() - :mouse-dragged A
mouseMoved() - :mouse-moved A
mousePressed() - :mouse-pressed A
-mousePressed - mouse-pressed *
+mousePressed - mouse-state *
mouseReleased() :mouse-released A
mouseX - mouse-x *
mouseY mouse-y *
@@ -120,7 +120,7 @@ pmouseY - pmouse-y *
key - raw-key *
keyCode - key-code *
keyPressed() - :key-pressed A
-keyPressed - key-pressed *
+keyPressed - key-pressed? *
keyReleased() :key-released A
keyTyped() :key-typed A
View
4 src/processing/core.clj
@@ -1984,7 +1984,7 @@
:category "Input"
:subcategory "Keyboard"
:added "1.0"}
- key-pressed
+ key-pressed?
"true if any key is currently pressed, false otherwise."
[]
(. *applet* :keyPressed))
@@ -2344,7 +2344,7 @@
:category "Input"
:subcategory "Mouse"
:added "1.0"}
- mouse-pressed
+ mouse-state
"Variable storing if a mouse button is pressed. The value of the
system variable mousePressed is true if a mouse button is pressed
and false if a button is not pressed."

0 comments on commit a0147b8

Please sign in to comment.