1
0
This commit is contained in:
2025-10-10 02:17:07 +02:00
commit ee9f86004b
48 changed files with 2161 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include "smt4497-P1.h"
int esperaPulseTecla(int toutMs)
{
int res = 0;
int antes = GetTickCount();
int ahora;
do {
if (_kbhit())
{
res = _getch();
break;
}
if (toutMs > 0)
Sleep(1);
ahora = GetTickCount();
} while (ahora - antes < toutMs);
return res;
}