mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-20 17:51:02 +00:00
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:
parent
502aaa6fe2
commit
5d69699edf
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue