// SetKeyInput enables or disables key press events handling, according to the // LibVLC hotkeys configuration. By default and for historical reasons, keyboard // events are handled by the LibVLC video widget. // // Note: On X11, there can be only one subscriber for key press and mouse // click events per window. If your application has subscribed to those events // for the X window ID of the video widget, then LibVLC will not be able to // handle key presses and mouse clicks in any case. // // Note: This function is only implemented for X11 and Win32 at the moment. func (this *Player) SetKeyInput(toggle bool) error { if this.ptr == nil { return syscall.EINVAL } if toggle { C.libvlc_video_set_key_input(this.ptr, 1) } else { C.libvlc_video_set_key_input(this.ptr, 0) } return checkError() }
// SetKeyInput enables or disables key press events handling, according to the // LibVLC hotkeys configuration. By default and for historical reasons, keyboard // events are handled by the LibVLC video widget. // // Note: On X11, there can be only one subscriber for key press and mouse // click events per window. If your application has subscribed to those events // for the X window ID of the video widget, then LibVLC will not be able to // handle key presses and mouse clicks in any case. // // Note: This function is only implemented for X11 and Win32 at the moment. func (this *Player) SetKeyInput(toggle bool) error { if this.ptr == nil { return &VLCError{"Player is nil"} } if toggle { C.libvlc_video_set_key_input(this.ptr, 1) } else { C.libvlc_video_set_key_input(this.ptr, 0) } return checkError() }