[PATCH] Use osx_common/convert_key in vo_corevideo.m
Hello, (and crap, I each time write vo_macosx until I remember it was renamed). Well, anyway this uses the same function as vo_quartz. The numbers are at least mostly the same (I might have overlooked something, but I think it actually is 100% the same). Only compilation was tested, especially "normal" keys and special keys for which MPlayer has no mapping might need testing. One "minor" disadvantage is that osx_common needs the Carbon framework headers (note: the framework itself is _not_ needed, just the headers, and even there only the HIToolbox, but I have not found a way to only include HIToolbox/Events.h directly...).
Hello, 2009/8/28 Reimar Döffinger <Reimar.Doeffinger@gmx.de>:
Hello, (and crap, I each time write vo_macosx until I remember it was renamed). Well, anyway this uses the same function as vo_quartz. The numbers are at least mostly the same (I might have overlooked something, but I think it actually is 100% the same). Only compilation was tested, especially "normal" keys and special keys for which MPlayer has no mapping might need testing. One "minor" disadvantage is that osx_common needs the Carbon framework headers (note: the framework itself is _not_ needed, just the headers, and even there only the HIToolbox, but I have not found a way to only include HIToolbox/Events.h directly...).
Works fine here, both in 32 and 64-bits... Guillaume -- Only a very small fraction of our DNA does anything; the rest is all comments and ifdefs. Joan Crawford - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." - http://www.brainyquote.com/quotes/authors/j/joan_crawford.html
participants (2)
-
Guillaume POIRIER -
Reimar Döffinger