GeezerVison is showing processing-r.github.io — mouseWheel \ Language (API)
| Name |
mouseWheel |
| Examples |
# Not Supported Now!
setup <- function() {
size(100, 100)
}
draw <- function() {
}
mouseWheel <- function(event) {
e = event$getCount()
println(e)
}
|
| Description |
The mouseWheel() function returns positive values when the mouse wheel is rotated down (toward the user), and negative values for the other direction (up or away from the user). On OS X with "natural" scrolling enabled, the values are opposite.
Mouse and keyboard events only work when a program has draw(). Without draw(), the code is only run once and then stops listening for events.
|
| Syntax | mouseWheel(event) |
| Parameters |
| event | MouseEvent: the MouseEvent |
|
| Related |
mouseX
mouseY
pmouseX
pmouseY
mousePressed_var
mousePressed
mouseReleased
mouseClicked
mouseMoved
mouseDragged
mouseButton
|
|---|