BasiliskII for iOS

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
User avatar
gingerbeardman
Tinkerer
Posts: 50
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

BasiliskII for iOS

Post by gingerbeardman »

Is anybody else using this?

https://github.com/zydeco/macemu/tree/i ... II/src/iOS

note: use ios branch

It's not well advertised and I only found out about this fork & branch after filing some issues/requests for minivmac4ios.

I built the code using Xcode 11.3.1 on Mojave 10.14.6 and had to add in one missing #ifdef __IPHONE_13_4 for it to build:
https://github.com/zydeco/macemu/blob/e ... mm#L82-L85

But it's quite amazing on an iPad! Thanks to @zydeco

I made some changes to run it in chunky mode (iPad Pro 12.9" fits 512x342@4x resolution very nicely) and I also added double height mode (well, pretty much it needs to have room left for the iPad home indicator).

It supports File Sharing, so you can download an hqx/sit/bin in Safari to Files and then send it to BasiliskII using iOS Share Sheet mechanism and the file is then accessible from a drive on the emulated Mac.

Monitor resolution changing without rebooting (via System 7.5 Monitors panel or equivalent) for switching between portrait and landscape orientations.

Apple Pencil is supported as a regular touch, feels very nice to draw with.

I'd love to see:
- proper Apple Pencil StrokeGestureRecognizer support
- which would bring with it support for palm rejection (for drawing)
- support for multi touch to be able to do one finger panning whilst drawing

bug asks:
- Apple Pencil pressure support masquerading as a Wacom
- support for Split View (I can enable it but it presents some issues with menu bar touch recognition)

Image
Last edited by gingerbeardman on Wed Mar 31, 2021 11:47 pm, edited 5 times in total.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
gingerbeardman
Tinkerer
Posts: 50
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

Second image showing "full resolution" of 1024x1366 portrait mode on iPad Pro 12.9"

Image
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
adespoton
Forum All-Star
Posts: 3348
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

That's great! I'll have to see if I can get it to build/run on my iPad 2 -- that's currently my Mini vMac "Mac".
User avatar
gingerbeardman
Tinkerer
Posts: 50
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

adespoton wrote: Thu Apr 01, 2021 5:21 pm That's great! I'll have to see if I can get it to build/run on my iPad 2 -- that's currently my Mini vMac "Mac".
Please do!

I have Mini vMac on here too, but Basilisk allows so much more.

Could easily be a daily driver with safari in Slide Over for web browsing and downloading.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
adespoton
Forum All-Star
Posts: 3348
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

gingerbeardman wrote: Thu Apr 01, 2021 7:35 pm
adespoton wrote: Thu Apr 01, 2021 5:21 pm That's great! I'll have to see if I can get it to build/run on my iPad 2 -- that's currently my Mini vMac "Mac".
Please do!

I have Mini vMac on here too, but Basilisk allows so much more.

Could easily be a daily driver with safari in Slide Over for web browsing and downloading.
Couple of questions: first, how did you get around:
error: Build input file cannot be found: '/Users/<user>/Projects/macemu4ios/BasiliskII/src/uae_cpu/cpustbl.cpp' (in target 'BasiliskII' from project 'BasiliskII')

Second, where exactly where you adding the ifdef? around the highlighted conditional?
User avatar
gingerbeardman
Tinkerer
Posts: 50
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

I didn't get that uae error.

Did you clone the repo and are you on the iOS branch?
Just downloading the code won't work.

Regarding the ifdef, yes, around the conditional.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
adespoton
Forum All-Star
Posts: 3348
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

Yeah; seems like even though I thought I was in the IOS branch, I checked out MAIN. So after adding that IFDEF, everything's great! A bit slow on the iPad 2, but works fine at 15fps. Seems like some of the later fixes from kanjitalk755's fork would improve things significantly here.

I'm also curious to see if this iOS build can be spun out to work on macOS, as the UI is pretty useful.
User avatar
gingerbeardman
Tinkerer
Posts: 50
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

Indeed, we'll have to see what happens
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
gingerbeardman
Tinkerer
Posts: 50
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

I started a blog and am writing about this System 7 on iPad journey.

https://blog.gingerbeardman.com
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
User avatar
adespoton
Forum All-Star
Posts: 3348
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

I fell down a rabbit hole there... https://blog.gingerbeardman.com/2021/04 ... le-events/ outlines how to do something I've been attempting (but failing) to do for 31 years! I always found QuicKeys too bulky (and expensive), but KeyQuencer just didn't provide me with a decent way to handle apple events. So I always fell back on AppleScript and xcmds/xfcns to do my dirty work.

But the combination of QuicKeys as a discovery tool and KeyQuencer as the execution platform looks like the perfect combination! Thanks for the blog... too bad I didn't read it 31 years ago ;)

Any chance you could whip up some handlers for SuperPaint as well?
User avatar
gingerbeardman
Tinkerer
Posts: 50
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

31 years! Better late than never, eh? :lol:

I'll take a look at SuperPaint. It's too old for Apple Events but it's toolbar is attached to the window so it should be possible to use the clicking method with window-relative coordinates.
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
jrdpizzo
Space Cadet
Posts: 1
Joined: Tue May 11, 2021 1:32 pm

Re: BasiliskII for iOS

Post by jrdpizzo »

Just found this and it’s awesome. I’m not a developer… so it took a little work to get it to compile with Xcode. But, I’ve loaded up 7.5.5 with the tools I used to use in college: WriteNow, ClarisWorks, Star Trek the 25th Anniversary Game and more. On my iPad Air 3 it’s really, really fast.

Two questions:
1 - Has anyone been able to get the audio to work. I don’t have any sound.
2 - Is there a virtual keyboard? I have a Bluetooth keyboard so it works that way…. but there doesn’t seem to be an onscreen one.
User avatar
adespoton
Forum All-Star
Posts: 3348
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: BasiliskII for iOS

Post by adespoton »

jrdpizzo wrote: Tue May 11, 2021 1:37 pm Just found this and it’s awesome. I’m not a developer… so it took a little work to get it to compile with Xcode. But, I’ve loaded up 7.5.5 with the tools I used to use in college: WriteNow, ClarisWorks, Star Trek the 25th Anniversary Game and more. On my iPad Air 3 it’s really, really fast.

Two questions:
1 - Has anyone been able to get the audio to work. I don’t have any sound.
2 - Is there a virtual keyboard? I have a Bluetooth keyboard so it works that way…. but there doesn’t seem to be an onscreen one.
There's a great virtual keyboard; I use that all the time. I always work with sound turned off, but I just turned my ringer on to test, and sound seems crystal clear on my iPhone 6+.
User avatar
gingerbeardman
Tinkerer
Posts: 50
Joined: Mon Aug 06, 2018 2:58 pm
Location: Cornwall, UK
Contact:

Re: BasiliskII for iOS

Post by gingerbeardman »

Swipe up/down with two fingers to show/hide the on-screen keyboard.

Shake your device at any time to show settings interface (same one that appears when you first launch).

Sound works for me. Mostly error beeps!
• BasiliskII on iPad Pro 12.9": Macintosh IIci 32MB + System 7.5.5 + Deneba artWORKS & UltraPaint
Post Reply