mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
osxvideosink: Make GstGLView propagate input events to its parent view
Fixes bug #691832
This commit is contained in:
parent
9455a3aee1
commit
77fde4b8ba
1 changed files with 7 additions and 0 deletions
|
@ -543,34 +543,41 @@
|
||||||
- (void)keyDown:(NSEvent *) event;
|
- (void)keyDown:(NSEvent *) event;
|
||||||
{
|
{
|
||||||
[self sendKeyEvent: event: "key-press"];
|
[self sendKeyEvent: event: "key-press"];
|
||||||
|
[super keyDown: event];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)keyUp:(NSEvent *) event;
|
- (void)keyUp:(NSEvent *) event;
|
||||||
{
|
{
|
||||||
[self sendKeyEvent: event: "key-release"];
|
[self sendKeyEvent: event: "key-release"];
|
||||||
|
[super keyUp: event];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)mouseDown:(NSEvent *) event;
|
- (void)mouseDown:(NSEvent *) event;
|
||||||
{
|
{
|
||||||
[self sendMouseEvent:event: "mouse-button-press"];
|
[self sendMouseEvent:event: "mouse-button-press"];
|
||||||
|
[super mouseDown: event];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)mouseUp:(NSEvent *) event;
|
- (void)mouseUp:(NSEvent *) event;
|
||||||
{
|
{
|
||||||
[self sendMouseEvent:event: "mouse-button-release"];
|
[self sendMouseEvent:event: "mouse-button-release"];
|
||||||
|
[super mouseUp: event];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)mouseMoved:(NSEvent *)event;
|
- (void)mouseMoved:(NSEvent *)event;
|
||||||
{
|
{
|
||||||
[self sendMouseEvent:event: "mouse-move"];
|
[self sendMouseEvent:event: "mouse-move"];
|
||||||
|
[super mouseMoved: event];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)mouseEntered:(NSEvent *)event;
|
- (void)mouseEntered:(NSEvent *)event;
|
||||||
{
|
{
|
||||||
|
[super mouseEntered: event];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)mouseExited:(NSEvent *)event;
|
- (void)mouseExited:(NSEvent *)event;
|
||||||
{
|
{
|
||||||
|
[super mouseExited: event];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue