Commit 135139ea authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

macosx: fixing hotkey usage.

Grah, stupid, annoying and more. Simple bugs should be forbidden :D
parent 336fb035
......@@ -494,19 +494,16 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
}
else if ( p_vout )
{
vlc_value_t val;
if( key == ' ')
val.i_int = config_GetInt( p_vout, "key-play-pause" );
else
val.i_int |= CocoaKeyToVLC( key );
val.i_int |= (int)CocoaKeyToVLC( key );
var_Set( p_vout->p_libvlc, "key-pressed", val );
}
else NSLog( @"Could not send keyevent to VLC core" );
}
else
{
[super keyDown: o_event];
}
}
- (void)mouseDown:(NSEvent *)o_event
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment