java.lang.Object
uk.co.caprica.vlcj.player.embedded.InputApi
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enableKeyInputHandling
(boolean enable) Set whether or not to enable native media player keyboard input handling.void
enableMouseInputHandling
(boolean enable) Set whether or not to enable native media player mouse input handling.
-
Method Details
-
enableMouseInputHandling
public void enableMouseInputHandling(boolean enable) Set whether or not to enable native media player mouse input handling.It may be necessary on some platforms to invoke this method with a
false
parameter value for Java mouse and keyboard listeners to work.Note that clicking the video surface on certain platforms is not guaranteed to capture mouse events - it may be necessary to respond to a mouse pressed event on the video surface and explicitly request the input focus to the video surface.
- Parameters:
enable
-true
to enable,false
to disable
-
enableKeyInputHandling
public void enableKeyInputHandling(boolean enable) Set whether or not to enable native media player keyboard input handling.It may be necessary on some platforms to invoke this method with a
false
parameter value for Java mouse and keyboard listeners to work.- Parameters:
enable
-true
to enable,false
to disable
-