java.lang.Object
uk.co.caprica.vlcj.player.embedded.InputApi
Behaviour pertaining to keyboard/mouse input-events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidenableKeyInputHandling(boolean enable) Set whether or not to enable native media player keyboard input handling.voidenableMouseInputHandling(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
falseparameter 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-trueto enable,falseto 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
falseparameter value for Java mouse and keyboard listeners to work.- Parameters:
enable-trueto enable,falseto disable
-