]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix a bug - tbh I dont understand why the other menu control worked at all yesterday :o
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 6 Dec 2007 17:12:10 +0000 (17:12 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 6 Dec 2007 17:12:10 +0000 (17:12 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7772 d7cf8633-e32d-0410-b094-e92efae38249

cl_gecko.c
prvm_cmds.c

index 7442e768b2bc64c872592dfeef2671b1a84b4f64..3d200dc056be3825a568958b957cc05fcc0559c0 100644 (file)
@@ -351,7 +351,6 @@ qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventty
                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
@@ -396,11 +395,13 @@ qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventty
                        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
index 04f0860dc3411fd966506a661e3a1ce232c0bd04..1b2f87ae74f7b54ed123170e2cc2bfdc4da32d04 100644 (file)
@@ -3231,7 +3231,7 @@ void VM_gecko_keyevent( void ) {
        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;