1
0
Fork 0

PUI map: disable key-bindings for now

This commit is contained in:
James Turner 2020-05-12 11:26:07 +01:00
parent 45eb7eaff4
commit fec454def9
2 changed files with 6 additions and 1 deletions

View file

@ -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)
{

View file

@ -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);