From 8a940246367497e71e5995ac9a9fbfac6f3b371e Mon Sep 17 00:00:00 2001 From: tudnai Date: Thu, 25 Jun 2020 20:23:08 -0700 Subject: [PATCH] Play / Pause / Stop / Reset menus connected --- A2Mac/AppDelegate.swift | 23 +++++++++++++++- A2Mac/Base.lproj/Main.storyboard | 27 ++++++++++++++----- A2Mac/ViewController.swift | 45 +++++++++++++++++++++++++++++++- A2iOS/Base.lproj/Main.storyboard | 43 +++++++++++++++--------------- src/cpu/6502.c | 2 ++ src/dev/audio/speaker.c | 13 +++++---- src/dev/audio/speaker.h | 10 +++++++ 7 files changed, 126 insertions(+), 37 deletions(-) diff --git a/A2Mac/AppDelegate.swift b/A2Mac/AppDelegate.swift index 1a971f4..4a6708a 100644 --- a/A2Mac/AppDelegate.swift +++ b/A2Mac/AppDelegate.swift @@ -67,8 +67,29 @@ class AppDelegate: NSObject, NSApplicationDelegate { if ( preferencesController != nil ) { preferencesController?.showWindow(sender) } - } + @IBAction func PowerOn(_ sender: Any) { + ViewController.current?.PowerOn(sender) + } + + @IBAction func Pause(_ sender: Any) { + ViewController.current?.Pause(sender) + } + + @IBAction func PowerOff(_ sender: Any) { + ViewController.current?.PowerOff(sender) + } + + @IBAction func ColdReset(_ sender: Any) { + ViewController.current?.Reset(sender) + } + + @IBAction func WarmReset(_ sender: Any) { + ViewController.current?.Reset(sender) + } + + + } diff --git a/A2Mac/Base.lproj/Main.storyboard b/A2Mac/Base.lproj/Main.storyboard index 442f8e7..5c430e7 100644 --- a/A2Mac/Base.lproj/Main.storyboard +++ b/A2Mac/Base.lproj/Main.storyboard @@ -778,35 +778,50 @@ + + + + + + + + + + + + + + + - + - + - + - + - + @@ -1367,7 +1382,7 @@ - +