summaryrefslogtreecommitdiffstats
path: root/osdep/mac/remote_command_center.swift
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-23 20:09:15 +0100
committerder richter <der.richter@gmx.de>2024-03-24 23:03:48 +0100
commit7e07e1a087e4107914294c5e9717f798e446c5d9 (patch)
treed0342930685761b1f3bb1c471c9b0c8e21fd8a95 /osdep/mac/remote_command_center.swift
parentdeb9d30e905b7b4645f18a26e6274a2859221631 (diff)
downloadmpv-7e07e1a087e4107914294c5e9717f798e446c5d9.tar.bz2
mpv-7e07e1a087e4107914294c5e9717f798e446c5d9.tar.xz
mac/apphub: migrate remaining events functionality to new AppHub
add new app_bridge objc file for bridging between mpv core and app functionality. replace old EventsResponder singleton with AppHub. another step to clean up all App functionality and have one central place for it.
Diffstat (limited to 'osdep/mac/remote_command_center.swift')
-rw-r--r--osdep/mac/remote_command_center.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/mac/remote_command_center.swift b/osdep/mac/remote_command_center.swift
index bec63a1984..547a14c232 100644
--- a/osdep/mac/remote_command_center.swift
+++ b/osdep/mac/remote_command_center.swift
@@ -155,7 +155,7 @@ class RemoteCommandCenter: NSObject {
self.configs[event.command]?.state = state
}
- EventsResponder.sharedInstance().inputHelper.put(key: config.key | Int32(state))
+ AppHub.shared.input.put(key: config.key | Int32(state))
return .success
}
@@ -166,7 +166,7 @@ class RemoteCommandCenter: NSObject {
}
let cmd = String(format: "seek %.02f absolute", posEvent.positionTime)
- return EventsResponder.sharedInstance().inputHelper.command(cmd) ? .success : .commandFailed
+ return AppHub.shared.input.command(cmd) ? .success : .commandFailed
}
@objc func processEvent(_ event: UnsafeMutablePointer<mpv_event>) {