Show
Ignore:
Timestamp:
03/08/06 15:09:47 (8 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/osgphotoalbum/osgphotoalbum.cpp

    r3528 r5032  
    613613            { 
    614614                _autoSteppingActive = !_autoSteppingActive; 
    615                 _previousTime = ea.time(); 
     615                _previousTime = ea.getTime(); 
    616616                return true; 
    617617            } 
    618618            else if (ea.getKey()=='n') 
    619619            { 
    620                 _album->nextPage(ea.time()+1.0f); 
     620                _album->nextPage(ea.getTime()+1.0f); 
    621621                return true; 
    622622            } 
    623623            else if (ea.getKey()=='p') 
    624624            { 
    625                 _album->previousPage(ea.time()+1.0f); 
     625                _album->previousPage(ea.getTime()+1.0f); 
    626626                return true; 
    627627            } 
     
    635635                { 
    636636                    _firstTraversal = false; 
    637                     _previousTime = ea.time(); 
     637                    _previousTime = ea.getTime(); 
    638638                } 
    639                 else if (ea.time()-_previousTime>_timePerSlide) 
     639                else if (ea.getTime()-_previousTime>_timePerSlide) 
    640640                { 
    641                     _previousTime = ea.time(); 
    642  
    643                     _album->nextPage(ea.time()+1.0f); 
     641                    _previousTime = ea.getTime(); 
     642 
     643                    _album->nextPage(ea.getTime()+1.0f); 
    644644                } 
    645645            }