mirror of https://github.com/mpv-player/mpv
mac/remote: move class local struct and enum definition to extension
the class local struct and enum are moved to an extension to separate their definition and usage.
This commit is contained in:
parent
80cde2671c
commit
1883f2f7a0
|
@ -17,7 +17,7 @@
|
|||
|
||||
import MediaPlayer
|
||||
|
||||
class RemoteCommandCenter: NSObject {
|
||||
extension RemoteCommandCenter {
|
||||
enum KeyType {
|
||||
case normal
|
||||
case repeatable
|
||||
|
@ -33,7 +33,9 @@ class RemoteCommandCenter: NSObject {
|
|||
self.type = type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class RemoteCommandCenter: NSObject {
|
||||
var configs: [MPRemoteCommand:Config] = [
|
||||
MPRemoteCommandCenter.shared().pauseCommand: Config(key: MP_KEY_PAUSEONLY),
|
||||
MPRemoteCommandCenter.shared().playCommand: Config(key: MP_KEY_PLAYONLY),
|
||||
|
|
Loading…
Reference in New Issue