git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7970
d7cf8633-e32d-0410-b094-
e92efae38249
// determine whether its a keyboard event
if( key < K_OTHERDEVICESBEGIN ) {
// determine whether its a keyboard event
if( key < K_OTHERDEVICESBEGIN ) {
- OSGK_KeyboardEventType mappedtype;
+ OSGK_KeyboardEventType mappedtype = kePress;
unsigned int mappedkey = key;
unsigned int i;
unsigned int mappedkey = key;
unsigned int i;
return osgk_browser_event_key( instance->browser, mappedkey, mappedtype ) != 0;
} else if( K_MOUSE1 <= key && key <= K_MOUSE3 ) {
return osgk_browser_event_key( instance->browser, mappedkey, mappedtype ) != 0;
} else if( K_MOUSE1 <= key && key <= K_MOUSE3 ) {
- OSGK_MouseButtonEventType mappedtype;
+ OSGK_MouseButtonEventType mappedtype = meDoubleClick;
OSGK_MouseButton mappedbutton;
mappedbutton = (OSGK_MouseButton) (mbLeft + (key - K_MOUSE1));
OSGK_MouseButton mappedbutton;
mappedbutton = (OSGK_MouseButton) (mbLeft + (key - K_MOUSE1));