Skip to content

Commit d433540

Browse files
committed
last notes re: mouse wheel
1 parent 58a9e7d commit d433540

1 file changed

Lines changed: 16 additions & 18 deletions

File tree

core/todo.txt

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ _ Deleted 1 texture objects, 0 remaining
209209
_ shader syntax (Andres request)
210210
_ might also need a define inside the shader to control what type it is
211211

212-
_ add mouse wheel support to 2.0 event system
213-
_ https://github.com/processing/processing/issues/1461
212+
X add mouse wheel support to 2.0 event system
213+
X https://github.com/processing/processing/issues/1461
214214
X http://code.google.com/p/processing/issues/detail?id=1423
215215
X this is fairly messy since desktop and JS behave a little differently
216216
o wheel event should subclass mouse (since position still relevant)
@@ -222,24 +222,22 @@ X http://www.javascriptkit.com/javatutors/onmousewheel.shtml
222222
X e.detail is 1 for 1 tick upward (away), -2 for 2 ticks down
223223
X e.wheelDelta is 120 for 1 click up, -240 for two clicks down
224224
X this is for non-natural! opposite of Java.. ugh
225-
_ testing with Java on OS X
226-
227-
natural on OS X: up is 1 unit, down is -1 units
228-
non-natural: up is -1 units, down is +1 unit
229-
Windows says 3 units per notch, OS X says just 1
230-
appears to be opposite of JS
231-
232-
ref: "negative values if the mouse wheel was rotated up or away from the user"
233-
http://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseWheelEvent.html#getWheelRotation()
234-
225+
X testing with Java on OS X
226+
X natural on OS X: up is 1 unit, down is -1 units
227+
X non-natural: up is -1 units, down is +1 unit
228+
X Windows says 3 units per notch, OS X says just 1
229+
X appears to be opposite of JS
235230
X using float value (/120.0f)
236231
X high-precision method grabbed if 1.7 is in use
237-
_ test with actual wheel mouse
238-
_ test on Windows
239-
_ add to the API docs
240-
_ decide on getAmount() and weirdness w/ clickCount
241-
_ get mouseWheel() added to api ref
242-
_ also added to keywords.txt
232+
X test with actual wheel mouse
233+
X test on Windows
234+
X decide on getAmount() and weirdness w/ clickCount
235+
X add note re: API docs
236+
X get mouseWheel() added to api ref
237+
o also added to keywords.txt
238+
X ref: "negative values if the mouse wheel was rotated up or away from the user"
239+
X http://docs.oracle.com/javase/6/docs/api/java/awt/event/MouseWheelEvent.html#getWheelRotation()
240+
X http://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseWheelEvent.html#getWheelRotation()
243241

244242
shape
245243
_ major surgery to put loadShape() back into PApplet/PGraphics

0 commit comments

Comments
 (0)