[MPlayer-dev-eng] [PATCH] GUI: Implement a true rotary potmeter

Hans-Dieter Kosch hdkosch at kabelbw.de
Sun Feb 16 23:09:01 CET 2014


The 'potmeter' currently responds only to horizontal mouse coordinates. This is 
especially confusing when the pot does not rotate in the expected direction 
depending on the quadrants of pot and mouse positions.

Attached patch implements a true rotary pot. You can click on an angular 
position and rotate by circular mouse movement. And it has stop points like its 
mechanical counterpart.

Tested with the volume pot of default skin 'Blue'.

The patch is quite big due to the code redundancy in the files. Perhaps 
outsourcing and reusing common code?

Hans-Dieter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: potmeter_rotate.patch
Type: text/x-patch
Size: 6791 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20140216/949a953e/attachment-0001.bin>


More information about the MPlayer-dev-eng mailing list