Python Binding Keyboard events severe problem

This forum is about all development around libVLC.
ppaulojr
Blank Cone
Blank Cone
Posts: 10
Joined: 11 Feb 2010 13:48

Python Binding Keyboard events severe problem

Postby ppaulojr » 21 May 2010 21:47

Using the Python Bindings for VLC 1.0.6 the problem of Keyboard events not being captured remains.

In Debian Testing (vlc 1.0.6) when you run the:

./vlc.py file.avi

The window created to display the movie don't handle any default event, such as spacebar to pause. It even don't handle the close window event.

I attached xev the in the windows id and it seems to be receiving the input as show in the log below. (The vlcwidget.py is not working also...)

Code: Select all

VisibilityNotify event, serial 13, synthetic NO, window 0x1200004, state VisibilityUnobscured FocusIn event, serial 13, synthetic NO, window 0x1200004, mode NotifyNormal, detail NotifyNonlinear KeymapNotify event, serial 13, synthetic NO, window 0x0, keys: 4294967229 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 KeyRelease event, serial 13, synthetic NO, window 0x1200004, root 0x112, subw 0x0, time 10519063, (210,632), root:(319,839), state 0x0, keycode 65 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XFilterEvent returns: False KeyPress event, serial 13, synthetic NO, window 0x1200004, root 0x112, subw 0x0, time 10519063, (210,632), root:(319,839), state 0x0, keycode 65 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XmbLookupString gives 1 bytes: (20) " " XFilterEvent returns: False KeyRelease event, serial 16, synthetic NO, window 0x1200004, root 0x112, subw 0x0, time 10519295, (210,632), root:(319,839), state 0x0, keycode 65 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XFilterEvent returns: False KeyRelease event, serial 16, synthetic NO, window 0x1200004, root 0x112, subw 0x0, time 10520135, (210,632), root:(319,839), state 0x0, keycode 65 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XFilterEvent returns: False KeyPress event, serial 16, synthetic NO, window 0x1200004, root 0x112, subw 0x0, time 10520135, (210,632), root:(319,839), state 0x0, keycode 65 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XmbLookupString gives 1 bytes: (20) " " XFilterEvent returns: False KeyRelease event, serial 16, synthetic NO, window 0x1200004, root 0x112, subw 0x0, time 10520287, (210,632), root:(319,839), state 0x0, keycode 65 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XFilterEvent returns: False KeyRelease event, serial 16, synthetic NO, window 0x1200004, root 0x112, subw 0x0, time 10520399, (210,632), root:(319,839), state 0x0, keycode 65 (keysym 0x20, space), same_screen YES, XLookupString gives 1 bytes: (20) " " XFilterEvent returns: False

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Python Binding Keyboard events severe problem

Postby Rémi Denis-Courmont » 25 May 2010 19:08

yeah, this is a known limitation.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ppaulojr
Blank Cone
Blank Cone
Posts: 10
Joined: 11 Feb 2010 13:48

Re: Python Binding Keyboard events severe problem

Postby ppaulojr » 25 May 2010 19:22

So there's no way to get any input?

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Python Binding Keyboard events severe problem

Postby Rémi Denis-Courmont » 25 May 2010 19:31

There is no way to get VLC to act on the events. If you want to capture the events yourself, you need to set vout-events to 3, IIRC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ppaulojr
Blank Cone
Blank Cone
Posts: 10
Joined: 11 Feb 2010 13:48

Re: Python Binding Keyboard events severe problem

Postby ppaulojr » 25 May 2010 19:49

thanks. I'll try it.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests