From 3ccfa79645d8bd99c7b559f9fa315d028db2c75d Mon Sep 17 00:00:00 2001 From: harlekin Date: Tue, 05 Mar 2002 19:03:08 +0000 Subject: the launch key on ipaq is now the fire button --- 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 @@ -35,6 +35,8 @@ #include #include +#include + #define SB_SCORE 1 #define SB_LEVEL 2 @@ -253,9 +255,25 @@ KAstTopLevel::KAstTopLevel( QWidget *parent, const char *name ) actions.insert( Qt::Key_Z, Teleport ); actions.insert( Qt::Key_Down, Brake ); actions.insert( Qt::Key_P, Pause ); - actions.insert( Key_F12, Launch ); - actions.insert( Key_F11, Shield ); - actions.insert( Key_F9, NewGame ); + + + 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 ); + actions.insert( Key_F11, Shield ); + 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 ); + } + } // actions.insert( Qt::Key_S, Shield ); // actions.insert( Qt::Key_X, Brake ); @@ -451,7 +469,7 @@ void KAstTopLevel::slotShipKilled() if ( shipsRemain > 0 ) { waitShip = TRUE; - view->showText( tr( "Ship Destroyed.\nPress Launch/Home key."), yellow ); + view->showText( tr( "Ship Destroyed.\nPress Contacts/Home key."), yellow ); } else { -- cgit v0.9.0.2