Anti
31/01/2005, 16:48
Hola, estoy intentando hacer un bucle while que salga solo al pulsar la tecla SELEC o START.
lo hago de esta forma:
while ((GpKeyGet() != (GPC_VK_SELECT) | GpKeyGet() != (GPC_VK_START)))
{
GpTextOut16(NULL,gpDraw,110,80,(char*)"Press START",0xFF);
GpTextOut16(NULL,gpDraw,110,100,(char*)"Or SELECT",0xFF);
}
o de esta otra...
while ((GpKeyGet() != (GPC_VK_SELECT) || GpKeyGet() != (GPC_VK_START)))
{
GpTextOut16(NULL,gpDraw,110,80,(char*)"Press START",0xFF);
GpTextOut16(NULL,gpDraw,110,100,(char*)"Or SELECT",0xFF);
}
Deberia hacer el while mientras la tecla que se pulse sea ninguna o diferente a SELECT o STAR.O eso creo.
El problema es que lo compilo pero luego no sale ni al pulsar select ni start :loco:
¿Alguien puede ayudarme?.
GRACIAS :musico:
lo hago de esta forma:
while ((GpKeyGet() != (GPC_VK_SELECT) | GpKeyGet() != (GPC_VK_START)))
{
GpTextOut16(NULL,gpDraw,110,80,(char*)"Press START",0xFF);
GpTextOut16(NULL,gpDraw,110,100,(char*)"Or SELECT",0xFF);
}
o de esta otra...
while ((GpKeyGet() != (GPC_VK_SELECT) || GpKeyGet() != (GPC_VK_START)))
{
GpTextOut16(NULL,gpDraw,110,80,(char*)"Press START",0xFF);
GpTextOut16(NULL,gpDraw,110,100,(char*)"Or SELECT",0xFF);
}
Deberia hacer el while mientras la tecla que se pulse sea ninguna o diferente a SELECT o STAR.O eso creo.
El problema es que lo compilo pero luego no sale ni al pulsar select ni start :loco:
¿Alguien puede ayudarme?.
GRACIAS :musico: