Fix #1125. Correct overloads...
This commit is contained in:
parent
6a3354cb15
commit
bb7189eb18
2 changed files with 10 additions and 4 deletions
|
@ -61,7 +61,9 @@ public:
|
|||
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
|
||||
|
@ -74,12 +76,14 @@ public:
|
|||
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());
|
||||
|
|
|
@ -64,7 +64,9 @@ public:
|
|||
FGGroundPickCallback() : SGPickCallback(PriorityScenery)
|
||||
{ }
|
||||
|
||||
virtual bool buttonPressed(int button, const osgGA::GUIEventAdapter*, const Info& info)
|
||||
virtual bool buttonPressed( int button,
|
||||
const osgGA::GUIEventAdapter&,
|
||||
const Info& info )
|
||||
{
|
||||
// only on left mouse button
|
||||
if (button != 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue