diff --git a/engine/menu_int.h b/engine/menu_int.h index 3c782a1..729a224 100644 --- a/engine/menu_int.h +++ b/engine/menu_int.h @@ -161,11 +161,15 @@ typedef struct ui_enginefuncs_s int (*pfnIsMapValid)( char *filename ); void (*pfnProcessImage)( int texnum, float gamma, int topColor, int bottomColor ); int (*pfnCompareFileTime)( char *filename1, char *filename2, int *iCompare ); - - void (*pfnEnableTextInput)( int enable ); - void (*pfnSDL_free)( void *mem ); } ui_enginefuncs_t; +typedef struct ui_textfuncs_s { + void (*pfnEnableTextInput)( int enable ); + int (*pfnUtfProcessChar) ( int ch ); + int (*pfnUtfMoveLeft) ( char *str, int pos ); + int (*pfnUtfMoveRight) ( char *str, int pos, int length ); +} ui_textfuncs_t; + typedef struct { int (*pfnVidInit)( void ); @@ -188,4 +192,5 @@ typedef struct typedef int (*MENUAPI)( UI_FUNCTIONS *pFunctionTable, ui_enginefuncs_t* engfuncs, ui_globalvars_t *pGlobals ); +typedef int (*UITEXTAPI)( ui_textfuncs_t* engfuncs ); #endif//MENU_INT_H