[MPlayer-dev-eng] keyboard lock PATCH [1/1]

Benjamin Zores ben at geexbox.org
Sat Dec 29 15:06:53 CET 2007


Peter Poulsen a écrit :
>> 2007/12/29, Peter Poulsen <peter at pgpoulsen.dk>:
>>> This is my first code for MPlayer ever, so be gentle :)
>>>
>>> I have a cat that loves to step on my keyboard, and when I'm watching movies that
>>> is
>>> pretty annoying. Therefore I have made this small patch that locks the keyboard.
>>> Let
>>> me know what you think.
>>>
>> By the your post title, your patch should only lock keyboard, instead
>> of other input devices. While your patch block all mplayer's commands,
>> there are quite number of commands do not come from the keyboard.
>>
> Yes, I can see that was unfortunate labeling. It should probably had been 'input
> lock' (also in the code). Any other suggestions?
> 
> I have attached the modified patch.

Doesn't -noconsolecontrols already do that ?
If not, better add a -nokeyboardinput (same as -nomouseinput, -nolirc, 
-nojoystick ...).

Ben



More information about the MPlayer-dev-eng mailing list