summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/qasteroids/toplevel.cpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/noncore/games/qasteroids/toplevel.cpp b/noncore/games/qasteroids/toplevel.cpp
index 57242a0..090099f 100644
--- a/noncore/games/qasteroids/toplevel.cpp
+++ b/noncore/games/qasteroids/toplevel.cpp
@@ -36,4 +36,6 @@
36#include <qpushbutton.h> 36#include <qpushbutton.h>
37 37
38#include <sys/utsname.h>
39
38 40
39 #define SB_SCORE1 41 #define SB_SCORE1
@@ -254,7 +256,23 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *name )
254 actions.insert( Qt::Key_Down, Brake ); 256 actions.insert( Qt::Key_Down, Brake );
255 actions.insert( Qt::Key_P, Pause ); 257 actions.insert( Qt::Key_P, Pause );
256 actions.insert( Key_F12, Launch ); 258
257 actions.insert( Key_F11, Shield ); 259
258 actions.insert( Key_F9, NewGame ); 260 struct utsname name; /* check for embedix kernel running on the zaurus, if
261 lineo change string, this break
262 */
263 if (uname(&name) != -1) {
264 QString release=name.release;
265 if(release.find("embedix",0,TRUE) !=-1) {
266 actions.insert( Key_F12, Launch );
267 actions.insert( Key_F11, Shield );
268 actions.insert( Key_F9, NewGame );
269 } else {
270 // ipaq
271 actions.insert( Key_F12, Shoot );
272 actions.insert( Key_F11, Shield );
273 actions.insert( Key_F10, Launch );
274 actions.insert( Key_F9, NewGame );
275 }
276 }
259 277
260// actions.insert( Qt::Key_S, Shield ); 278// actions.insert( Qt::Key_S, Shield );
@@ -452,5 +470,5 @@ void KAstTopLevel::slotShipKilled()
452 { 470 {
453 waitShip = TRUE; 471 waitShip = TRUE;
454 view->showText( tr( "Ship Destroyed.\nPress Launch/Home key."), yellow ); 472 view->showText( tr( "Ship Destroyed.\nPress Contacts/Home key."), yellow );
455 } 473 }
456 else 474 else