Addd method implementation in serializers
This commit is contained in:
@@ -40,15 +40,13 @@ bool PushButton::handleImplementation(osgGA::EventVisitor* ev, osgGA::Event* eve
|
||||
case(osgGA::GUIEventAdapter::PUSH):
|
||||
if (_buttonSwitch.valid())
|
||||
{
|
||||
_buttonSwitch->setSingleChildOn(2);
|
||||
runCallbacks("pressed");
|
||||
pressed();
|
||||
}
|
||||
break;
|
||||
case(osgGA::GUIEventAdapter::RELEASE):
|
||||
if (_buttonSwitch.valid())
|
||||
{
|
||||
_buttonSwitch->setSingleChildOn(1);
|
||||
runCallbacks("released");
|
||||
released();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@@ -107,3 +105,13 @@ void PushButton::createGraphicsImplementation()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void PushButton::pressedImplementation()
|
||||
{
|
||||
_buttonSwitch->setSingleChildOn(2);
|
||||
}
|
||||
|
||||
void PushButton::releasedImplementation()
|
||||
{
|
||||
_buttonSwitch->setSingleChildOn(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user