mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-08-26 13:51:49 +00:00
Update mobility interface
This commit is contained in:
parent
632b324187
commit
0c515e3464
@ -65,13 +65,21 @@ typedef struct mobile_engfuncs_s
|
|||||||
void (*pfnTouchSetClientOnly)( unsigned char state );
|
void (*pfnTouchSetClientOnly)( unsigned char state );
|
||||||
|
|
||||||
// Clean defaults list
|
// Clean defaults list
|
||||||
void (*pfnTouchResetDefaultButtons)();
|
void (*pfnTouchResetDefaultButtons)( void );
|
||||||
|
|
||||||
|
// Draw scaled font for client
|
||||||
|
int (*pfnDrawScaledCharacter)( int x, int y, int number, int r, int g, int b, float scale );
|
||||||
|
|
||||||
|
void (*pfnSys_Warn)( const char *format, ... );
|
||||||
|
|
||||||
|
// Get native object for current platform.
|
||||||
|
// Pass NULL to arguments to receive an array of available objects or NULL if nothing
|
||||||
|
void *(*pfnGetNativeObject)( const char *obj );
|
||||||
|
|
||||||
|
void (*pfnSetCustomClientID)( const char *id );
|
||||||
// To be continued...
|
// To be continued...
|
||||||
} mobile_engfuncs_t;
|
} mobile_engfuncs_t;
|
||||||
|
|
||||||
extern mobile_engfuncs_t *gMobileEngfuncs;
|
|
||||||
|
|
||||||
// function exported from client
|
// function exported from client
|
||||||
// returns 0 on no error otherwise error
|
// returns 0 on no error otherwise error
|
||||||
typedef int (*pfnMobilityInterface)( mobile_engfuncs_t *gMobileEngfuncs );
|
typedef int (*pfnMobilityInterface)( mobile_engfuncs_t *gMobileEngfuncs );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user