Rename Posix_ConsoleInput() to Sys_ConsoleInput()

Sync with Windows implementation and add it to sys_public.h in
preparation to move the event queue to SDL.
This commit is contained in:
dhewg 2011-12-29 19:27:02 +01:00
parent 502aaa6fe2
commit 5d69699edf
3 changed files with 4 additions and 4 deletions

View file

@ -657,12 +657,12 @@ void tty_FlushIn() {
/*
================
Posix_ConsoleInput
Sys_ConsoleInput
Checks for a complete line of text typed in at the console.
Return NULL if a complete line is not ready.
================
*/
char *Posix_ConsoleInput( void ) {
char *Sys_ConsoleInput( void ) {
if ( tty_enabled ) {
char key;
bool hidden = false;
@ -919,7 +919,7 @@ the actual mouse and keyboard input is in the Sys_Poll logic
*/
void Sys_GenerateEvents( void ) {
char *s;
if ( ( s = Posix_ConsoleInput() ) ) {
if ( ( s = Sys_ConsoleInput() ) ) {
char *b;
int len;

View file

@ -198,6 +198,7 @@ void Sys_DLL_Unload( uintptr_t dllHandle );
void Sys_GenerateEvents( void );
sysEvent_t Sys_GetEvent( void );
void Sys_ClearEvents( void );
char *Sys_ConsoleInput( void );
// input is tied to windows, so it needs to be started up and shut down whenever
// the main window is recreated

View file

@ -63,7 +63,6 @@ void Sys_QueEvent( int time, sysEventType_t type, int value, int value2, int ptr
void Sys_CreateConsole( void );
void Sys_DestroyConsole( void );
char *Sys_ConsoleInput (void);
char *Sys_GetCurrentUser( void );
void Win_SetErrorText( const char *text );