Bem-vindo ao Fórum!

Registre-se agora mesmo e fique por dentro da maior comunidade de Cheats do Brasil!

Sign in to follow this  
Hiarlxn

(AJUDA) IsKeyPressed

Recommended Posts

Galera alguem pode me falar oque colocar no lugar do IsKeyPressed ?

 

 

o XIGNCODE detecta o GeyAsyncKey, GetKeyState e IsPressedKey

 

 

codigo::

 

 

void MenuNav(void)
{
   if (IsKeyPressed(VK_INSERT, 0) & 1 || IsKeyPressed(VK_F12, 0) & 1)
   {
       Mvisible = (!Mvisible);
   }
   if (!Mvisible) return;
   if (IsKeyPressed(VK_UP, 0) & 1) {
       do {
           Mpos--;
           if (Mpos<0)  Mpos = Mmax - 1;
       } while (D3MENU[Mpos].typ == MENUTEXT);
   }
   else if (IsKeyPressed(VK_DOWN, 0) & 1) {
       do {
           Mpos++;
           if (Mpos == Mmax) Mpos = 0;
       } while (D3MENU[Mpos].typ == MENUTEXT);
   }
   else if (D3MENU[Mpos].var) {
       int dir = 0;
       if ((IsKeyPressed(VK_LEFT, 0) & 1) && *D3MENU[Mpos].var > 0) dir = -1;
       if ((IsKeyPressed(VK_RIGHT, 0) & 1) && *D3MENU[Mpos].var < (D3MENU[Mpos].maxvalue - 1)) dir = 1;
       if (dir) {
           *D3MENU[Mpos].var += dir;
           if (D3MENU[Mpos].typ == MENUFOLDER) Mmax = 0;
           if (D3MENU[Mpos].typ == MENUCAT) Mmax = 0;
       }
   }
}

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this