Allow arrowkeys to move player, including diagonals by pressing multiple

keys before releasing. Works well on handheld's thumbpad, perhaps less
useful on a fullsize keyboard.
Also some Qtopia-only fixes for Qt windowport.
This commit is contained in:
warwick
2002-08-14 05:01:56 +00:00
parent 6682df52d2
commit 8285ca28c6
2 changed files with 48 additions and 17 deletions

View File

@@ -22,7 +22,7 @@
#include <qlabel.h>
#include <qlineedit.h>
#if defined(QWS)
#include <qpeapplication.h>
#include <qpe/qpeapplication.h>
#else
#include <qapplication.h>
#endif
@@ -711,6 +711,7 @@ public slots:
protected:
virtual void resizeEvent(QResizeEvent*);
virtual void keyPressEvent(QKeyEvent*);
virtual void keyReleaseEvent(QKeyEvent* event);
virtual void closeEvent(QCloseEvent*);
private slots:
@@ -734,6 +735,7 @@ private:
NetHackQtKeyBuffer& keysink;
QWidgetStack* stack;
int dirkey;
const char* *macro;
};