Show
Ignore:
Timestamp:
08/01/14 15:07:38 (11 hours ago)
Author:
robert
Message:

Implemented callbacks for validate(), textChanged() and returnPressed()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgGA/GUIEventAdapter.cpp

    r13041 r13376  
    123123    _touchData->addTouchPoint(id, phase, x, y, tapCount); 
    124124} 
     125 
     126void GUIEventAdapter::copyPointerDataFrom(const osgGA::GUIEventAdapter& sourceEvent) 
     127{ 
     128    setGraphicsContext(const_cast<osg::GraphicsContext*>(sourceEvent.getGraphicsContext())); 
     129    setX(sourceEvent.getX()); 
     130    setY(sourceEvent.getY()); 
     131    setInputRange(sourceEvent.getXmin(), sourceEvent.getYmin(), sourceEvent.getXmax(), sourceEvent.getYmax()); 
     132    setButtonMask(sourceEvent.getButtonMask()); 
     133    setMouseYOrientation(sourceEvent.getMouseYOrientation()); 
     134    setPointerDataList(sourceEvent.getPointerDataList()); 
     135}