panel(p)
{}
- virtual bool buttonPressed(int b, const osgGA::GUIEventAdapter*, const Info& info)
+ virtual bool buttonPressed( int b,
+ const osgGA::GUIEventAdapter&,
+ const Info& info )
{
button = b;
// convert to panel coordinates
picked.x(), picked.y());
}
- virtual void update(double dt)
+ virtual void update(double dt, int keyModState)
{
panel->getPanel()->updateMouseDelay(dt);
}
- virtual void buttonReleased(void)
+ virtual void buttonReleased( int,
+ const osgGA::GUIEventAdapter&,
+ const Info* )
{
panel->getPanel()->doLocalMouseAction(button, MOUSE_BUTTON_UP,
picked.x(), picked.y());
_panel = fgReadPanel(_panelPath);
if (!_panel) {
SG_LOG(SG_COCKPIT, SG_WARN, "failed to read panel from:" << _panelPath);
- _panelPath = string(); // don't keep trying to read
+ _panelPath = std::string(); // don't keep trying to read
return;
}