summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_events_objc.h
Commit message (Collapse)AuthorAgeFilesLines
* mac: fix media key support for libmpv usersder richter2020-02-221-0/+3
| | | | | | | | this basically moves the remote command center to our mac events instead of keeping it our Application, which is only available when started from mpv itself. also make it independent of the NSApplication. this also prevents a runtime crash
* mac: replace old event tap for media key support with MediaPlayerder richter2019-12-151-1/+2
| | | | | | | | | | | | | | | the old event tap has several problems, like no proper priority support or having to set accessibility permissions for mpv or the terminal. it is now replaced by the new MediaPlayer which has proper priority support and isn't as greedy as previously. this only includes Media Key support and not any of the other features included in the MediaPlayer framework, like proper Now Playing data (only set dummy data for now). this is only available on macOS 10.12.2 and higher. also removes some unnecessary redefines. Fixes #6389
* mac: remove Apple Remote supportder richter2019-12-151-2/+1
| | | | | | the Apple Remote has long been deprecated and abandoned by Apple. current macs don't come with support for it anymore. support might be re-added with the next commit.
* osx: code cleanups and cosmetic fixesAkemi2018-01-201-8/+1
|
* osx: fix media keys input when other Apps steal the priorityAkemi2017-09-071-0/+2
| | | | | | | | | | | other Apps do the same as mpv and tap into the global event chain. events that are handled are not being propagated down the event chain. that can lead to mpv not getting any media key events anymore when they are held back by other Apps. we will just move mpv back to the top of the event list when mpv is refocused and is not at the top of the list any more. Fixes #4834
* osx: change license of OSX and cocoa files to LGPLwm42017-06-241-7/+7
| | | | All authors of the current code have agreed.
* osx: fix key input in certain circumstancesAkemi2017-03-261-0/+2
| | | | | | | | | | | | | for a reason i can just assume some key events can vanish from the event chain and mpv seems unresponsive. after quite some testing i could confirm that the events are present at the first entry point of the event chain, the sendEvent method of the Application, and that they vanish at a point afterwards. now we use that entry point to grab keyDown and keyUp events. we also stop propagating those key events to prevent the no key input' error sound. if we ever need the key events somewhere down the event chain we need to start propagating them again. though this is not necessary currently.
* osx: initial Touch Bar supportAkemi2017-03-261-0/+2
|
* osx: never expose input_ctx from EventsResponderwm42015-05-261-2/+8
| | | | Keep it internal, so we can synchronize access to it properly.
* cocoa: move handleFilesArray: to macosx_eventsFRAU KOUJIRO2014-08-061-0/+2
|
* cocoa: sync inputContext inside EventsResponderFRAU KOUJIRO2014-08-061-1/+3
|
* cocoa: decouple events from application somewhatFRAU KOUJIRO2014-08-061-0/+33