Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main()
  2. {
  3.     char key;
  4.     while(true)
  5.     {
  6.         if(_kbhit())
  7.         {
  8.             key = _getch();
  9.             if (key == 'w')
  10.                 cout << "Up\n";
  11.             else if (key == 's')
  12.                 cout << "Down\n";
  13.             else if (key == 32)
  14.                 system("cls");
  15.             else if (key == 27)
  16.                 return 0;
  17.             else
  18.                 cout << (int)key << '\n';
  19.         }
  20.     }
  21.  
  22.     system("pause");
  23.     return 0;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top