Go to the documentation of this file.00001 #if defined(_WIN32) && !defined(_XBOX) && !defined(X360)
00002 #include <conio.h>
00003 #elif defined(_PS3) || defined(__PS3__) || defined(SN_TARGET_PS3)
00004
00005 #else
00006
00007 #include "Getche.h"
00008
00009 char getche()
00010 {
00011
00012
00013 struct termios oldt,
00014 newt;
00015 char ch;
00016 tcgetattr( STDIN_FILENO, &oldt );
00017 newt = oldt;
00018 newt.c_lflag &= ~( ICANON | ECHO );
00019 tcsetattr( STDIN_FILENO, TCSANOW, &newt );
00020 ch = getchar();
00021 tcsetattr( STDIN_FILENO, TCSANOW, &oldt );
00022 return ch;
00023
00024 }
00025 #endif