// determine whether its a keyboard event
if( key < K_OTHERDEVICESBEGIN ) {
- OSGK_KeyboardEventType mappedtype;
+ OSGK_KeyboardEventType mappedtype = kePress;
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 ) {
- OSGK_MouseButtonEventType mappedtype;
+ OSGK_MouseButtonEventType mappedtype = meDoubleClick;
OSGK_MouseButton mappedbutton;
mappedbutton = (OSGK_MouseButton) (mbLeft + (key - K_MOUSE1));