From: res Date: Wed, 12 Dec 2007 19:28:44 +0000 (+0000) Subject: Gecko: forward mouse wheel input X-Git-Tag: xonotic-v0.1.0preview~2703 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=37bc9c308a592fe3c9622cbca96d018df09dfa41;p=xonotic%2Fdarkplaces.git Gecko: forward mouse wheel input git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7787 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_gecko.c b/cl_gecko.c index d9950a14..f1ec9d89 100644 --- a/cl_gecko.c +++ b/cl_gecko.c @@ -412,6 +412,11 @@ qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventty osgk_browser_event_mouse_button( instance->browser, mappedbutton, mappedtype ); return true; + } else if( K_MWHEELUP <= key && key <= K_MWHEELDOWN ) { + if( eventtype == CLG_BET_DOWN ) + osgk_browser_event_mouse_wheel( instance->browser, + waVertical, (key == K_MWHEELUP) ? wdNegative : wdPositive ); + return true; } // TODO: error? return false;