Show
Ignore:
Timestamp:
03/08/06 15:09:47 (9 years ago)
Author:
robert
Message:

Converted osgGA::GUIEventAdapter into a concrete class capable of respresenting
keyboard and mouse events.

Added osgGA::EventQueue? class to support a thread safe event queue and adaption
of keyboard and mouse events.

Removed osgProducer::EventAdapter? as GUIEventAdapter replaces it.

Adapted osgProducer and examples to work with the new changes to osgGA.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgcatch/osgcatch.cpp

    r4301 r5032  
    863863                } 
    864864 
    865                 static double previous_time = ea.time(); 
    866                 double dt = ea.time()-previous_time; 
    867                 previous_time = ea.time(); 
     865                static double previous_time = ea.getTime(); 
     866                double dt = ea.getTime()-previous_time; 
     867                previous_time = ea.getTime(); 
    868868 
    869869                // move objects 
     
    922922 
    923923                    if (!(*itr)->anyInside(_origin, _origin+_width+_height) ||  
    924                         (*itr)->needToRemove(ea.time()) || 
     924                        (*itr)->needToRemove(ea.getTime()) || 
    925925                        removeEntry) 
    926926                    { 
     
    945945                        (*itr)->explode(); 
    946946                        (*itr)->stop(); 
    947                         (*itr)->setTimeToRemove(ea.time()+3.0); 
     947                        (*itr)->setTimeToRemove(ea.getTime()+3.0); 
    948948                    } 
    949949 
     
    952952 
    953953                // create new catchable objects 
    954                 static double previousTime = ea.time(); 
    955                 double deltaTime = ea.time()-previousTime; 
    956                 previousTime = ea.time(); 
     954                static double previousTime = ea.getTime(); 
     955                double deltaTime = ea.getTime()-previousTime; 
     956                previousTime = ea.getTime(); 
    957957 
    958958                float numDropsPerSecond = _initialNumDropsPerSecond * (_level+1);