GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing processing-r.github.io — mouseWheel \ Language (API)

Cover
Reference
Tutorials
Bugs
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
eventMouseEvent: the MouseEvent
Related mouseX
mouseY
pmouseX
pmouseY
mousePressed_var
mousePressed
mouseReleased
mouseClicked
mouseMoved
mouseDragged
mouseButton
Creative Commons License
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.