Skip to content
This repository
Browse code

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

…o avoid potential conflicts with applet handler fn names.
  • Loading branch information...
commit a0147b88696a2bf9d81a49430f12cdade92790c0 1 parent 01dd2c2
Sam Aaron authored March 04, 2012
4  API.md
Source Rendered
@@ -109,7 +109,7 @@ mouseClicked() - :mouse-clicked A
109 109
 mouseDragged() - :mouse-dragged A
110 110
 mouseMoved() - :mouse-moved A
111 111
 mousePressed() - :mouse-pressed A
112  
-mousePressed - mouse-pressed *
  112
+mousePressed - mouse-state *
113 113
 mouseReleased() :mouse-released A
114 114
 mouseX - mouse-x *
115 115
 mouseY mouse-y *
@@ -120,7 +120,7 @@ pmouseY - pmouse-y *
120 120
 key - raw-key *
121 121
 keyCode - key-code *
122 122
 keyPressed() - :key-pressed A
123  
-keyPressed - key-pressed *
  123
+keyPressed - key-pressed? *
124 124
 keyReleased() :key-released A
125 125
 keyTyped() :key-typed A
126 126
 
4  src/processing/core.clj
@@ -1984,7 +1984,7 @@
1984 1984
     :category "Input"
1985 1985
     :subcategory "Keyboard"
1986 1986
     :added "1.0"}
1987  
-    key-pressed
  1987
+    key-pressed?
1988 1988
   "true if any key is currently pressed, false otherwise."
1989 1989
   []
1990 1990
   (. *applet* :keyPressed))
@@ -2344,7 +2344,7 @@
2344 2344
     :category "Input"
2345 2345
     :subcategory "Mouse"
2346 2346
     :added "1.0"}
2347  
-  mouse-pressed
  2347
+  mouse-state
2348 2348
   "Variable storing if a mouse button is pressed. The value of the
2349 2349
   system variable mousePressed is true if a mouse button is pressed
2350 2350
   and false if a button is not pressed."

0 notes on commit a0147b8

Please sign in to comment.
Something went wrong with that request. Please try again.