return NULL;\r
}\r
\r
-static void cl_gecko_updatecallback( rtexture_t *texture, clgecko_t *instance ) {\r
+static void cl_gecko_updatecallback( rtexture_t *texture, void* callbackData ) {
+ clgecko_t *instance = callbackData;\r
const unsigned char *data;\r
if( instance->browser ) {\r
// TODO: OSGK only supports BGRA right now\r
{ K_SCROLLOCK, OSGKKey_ScrollLock }\r
};\r
\r
-qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventtype_t eventtype ) {\r
+qboolean CL_Gecko_Event_Key( clgecko_t *instance, keynum_t key, clgecko_buttoneventtype_t eventtype ) {\r
if( !instance || !instance->browser ) {\r
return false;\r
}\r
OSGK_KeyboardEventType mappedtype;\r
unsigned int mappedkey = key;\r
\r
- int i;\r
+ unsigned int i;\r
// yes! then convert it if necessary!\r
for( i = 0 ; i < sizeof( geckokeymappingtable ) / sizeof( *geckokeymappingtable ) ; i++ ) {\r
const geckokeymapping_t * const mapping = &geckokeymappingtable[ i ];\r
void CL_Gecko_Event_CursorMove( clgecko_t *instance, float x, float y );\r
\r
// returns whether the key/button event was handled or not\r
-qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventtype_t eventtype );\r
+qboolean CL_Gecko_Event_Key( clgecko_t *instance, keynum_t key, clgecko_buttoneventtype_t eventtype );\r
\r
void CL_Gecko_Resize( clgecko_t *instance, int width, int height );\r
// get the ratio between gecko instance's size in the texture and the actual texture size..\r