1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-11 17:39:38 +00:00

terminal-win: remove nonsensical code

Something about a non-working MinGW thing? Really, I don't care. It
also prevents using the console API properly.
This commit is contained in:
wm4 2014-08-21 22:12:37 +02:00
parent 47b29094c3
commit 070c54dff4

View File

@ -70,15 +70,6 @@ static int getch2_internal(void)
INPUT_RECORD eventbuffer[128];
DWORD retval;
int i = 0;
if (!getch2_status) {
// supports e.g. MinGW xterm, unfortunately keys are only received after
// enter was pressed.
uint8_t c;
if (!PeekNamedPipe(in, NULL, 1, &retval, NULL, NULL) || !retval)
return -1;
ReadFile(in, &c, 1, &retval, NULL);
return retval == 1 ? c : -1;
}
/*check if there are input events*/
if (!GetNumberOfConsoleInputEvents(in, &retval)) {
printf("getch2: can't get number of input events: %i\n",