ygCAVEWand derived from ygWand Example Source Header

Description: creates a wand that detects CAVE wand button events

notes:
Category: User
Author: Dave Pape
Revision: 11/01/01

    Events
button1, button2, button3 a button has been pressed
buttonUp1, buttonUp2, buttonUp3 a button has been released

    Comments

constructor ygCAVEWand

method reset

1 for each CAVE button set the previous state to zero

method app

1 for each CAVE button
1.1 if button state becomes on then generate a button event
1.2 else, if button state becomes off then generate a buttonUp event