-rw-r--r-- | noncore/games/qasteroids/toplevel.cpp | 20 |
1 files changed, 19 insertions, 1 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 @@ -37,2 +37,4 @@ +#include <sys/utsname.h> + @@ -255,2 +257,10 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *name ) actions.insert( Qt::Key_P, Pause ); + + + struct utsname name; /* check for embedix kernel running on the zaurus, if + lineo change string, this break + */ + if (uname(&name) != -1) { + QString release=name.release; + if(release.find("embedix",0,TRUE) !=-1) { actions.insert( Key_F12, Launch ); @@ -258,2 +268,10 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *name ) actions.insert( Key_F9, NewGame ); + } else { + // ipaq + actions.insert( Key_F12, Shoot ); + actions.insert( Key_F11, Shield ); + actions.insert( Key_F10, Launch ); + actions.insert( Key_F9, NewGame ); + } + } @@ -453,3 +471,3 @@ void KAstTopLevel::slotShipKilled() waitShip = TRUE; - view->showText( tr( "Ship Destroyed.\nPress Launch/Home key."), yellow ); + view->showText( tr( "Ship Destroyed.\nPress Contacts/Home key."), yellow ); } |