OSGK_KeyboardEventType mappedtype;\r
unsigned int mappedkey = key;\r
\r
-\r
int i;\r
// yes! then convert it if necessary!\r
for( i = 0 ; i < sizeof( geckokeymappingtable ) / sizeof( *geckokeymappingtable ) ; i++ ) {\r
mappedtype = meDoubleClick;\r
break;\r
case CLG_BET_PRESS:\r
- // TODO: error message\r
+ // hihi, hacky hacky\r
+ osgk_browser_event_key( instance->browser, mappedkey, meDown );\r
+ mappedtype = meUp;\r
break;\r
}\r
\r
- return true;\r
+ return osgk_browser_event_key( instance->browser, mappedkey, mappedtype ) != 0;\r
}\r
// TODO: error?\r
return false;\r
name = PRVM_G_STRING( OFS_PARM0 );
VM_CheckEmptyString( name );
key = (unsigned int) PRVM_G_FLOAT( OFS_PARM1 );
- switch( (unsigned int) PRVM_G_FLOAT( OFS_PARM3 ) ) {
+ switch( (unsigned int) PRVM_G_FLOAT( OFS_PARM2 ) ) {
case 0:
eventtype = CLG_BET_DOWN;
break;