PUI map: disable key-bindings for now
This commit is contained in:
parent
45eb7eaff4
commit
fec454def9
2 changed files with 6 additions and 1 deletions
|
@ -557,6 +557,7 @@ void MapWidget::handlePan(int x, int y)
|
|||
_hitLocation = SGVec2d(x,y);
|
||||
}
|
||||
|
||||
#if 0
|
||||
int MapWidget::checkKey (int key, int updown )
|
||||
{
|
||||
if ((updown == PU_UP) || !isVisible () || !isActive () || (window != puGetWindow())) {
|
||||
|
@ -607,6 +608,8 @@ int MapWidget::checkKey (int key, int updown )
|
|||
|
||||
return TRUE ;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
void MapWidget::pan(const SGVec2d& delta)
|
||||
{
|
||||
|
|
|
@ -33,7 +33,9 @@ public:
|
|||
virtual void setSize(int width, int height);
|
||||
virtual void doHit( int button, int updown, int x, int y ) ;
|
||||
virtual void draw( int dx, int dy ) ;
|
||||
virtual int checkKey(int key, int updown);
|
||||
|
||||
// disable key handling for now
|
||||
//virtual int checkKey(int key, int updown);
|
||||
|
||||
void setProperty(SGPropertyNode_ptr prop);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue