]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Gecko: forward mouse wheel input
authorres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Dec 2007 19:28:44 +0000 (19:28 +0000)
committerres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Dec 2007 19:28:44 +0000 (19:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7787 d7cf8633-e32d-0410-b094-e92efae38249

cl_gecko.c

index d9950a14b07d5767331ce4a876506822761ccfa8..f1ec9d89f9692387ad6af500180d51ad08501451 100644 (file)
@@ -412,6 +412,11 @@ qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventty
 \r
                osgk_browser_event_mouse_button( instance->browser, mappedbutton, mappedtype );\r
                return true;\r
+       } else if( K_MWHEELUP <= key && key <= K_MWHEELDOWN ) {\r
+               if( eventtype == CLG_BET_DOWN )\r
+                       osgk_browser_event_mouse_wheel( instance->browser, \r
+                               waVertical, (key == K_MWHEELUP) ? wdNegative : wdPositive );\r
+               return true;\r
        }\r
        // TODO: error?\r
        return false;\r