From 37bc9c308a592fe3c9622cbca96d018df09dfa41 Mon Sep 17 00:00:00 2001 From: res Date: Wed, 12 Dec 2007 19:28:44 +0000 Subject: [PATCH] Gecko: forward mouse wheel input git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7787 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_gecko.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2