mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-07 04:40:43 +08:00
engine: platform: make most input platform functions optional, patch fbdev/evdev to compile
This commit is contained in:
@@ -98,7 +98,7 @@ static void SDLash_KeyEvent( SDL_KeyboardEvent key )
|
||||
int down = key.state != SDL_RELEASED;
|
||||
int keynum = key.keysym.sym;
|
||||
|
||||
if( SDL_IsTextInputActive( ) && down )
|
||||
if( host.textmode && down )
|
||||
{
|
||||
// this is how engine understands ctrl+c, ctrl+v and other hotkeys
|
||||
if( cls.key_dest != key_game && FBitSet( SDL_GetModState(), KMOD_CTRL ))
|
||||
|
||||
@@ -95,17 +95,6 @@ void Platform_SetClipboardText( const char *buffer )
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
=============
|
||||
Platform_EnableTextInput
|
||||
|
||||
=============
|
||||
*/
|
||||
void Platform_EnableTextInput( qboolean enable )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
========================
|
||||
Platform_SetCursorType
|
||||
@@ -163,14 +152,3 @@ void Platform_SetMouseGrab( qboolean enable )
|
||||
{
|
||||
SDL_WM_GrabInput( enable ? SDL_GRAB_ON : SDL_GRAB_OFF );
|
||||
}
|
||||
|
||||
/*
|
||||
========================
|
||||
Platform_GetKeyModifiers
|
||||
|
||||
========================
|
||||
*/
|
||||
key_modifier_t Platform_GetKeyModifiers( void )
|
||||
{
|
||||
return KeyModifier_None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user