Core Haptics [0] my friend. It's been a staple for mobile game dev for a while. It also happens to work on the trackpad on macos. But please don't. I'm sure apple would probably veto the idea as well.
On the contrary, I doubt Apple would reject an app for this. CoreHaptics are there for unlimited use in e.g. gaming and this HDD toy app is basically the same use case as gaming.
If Apple wasn't keen on it, they would limit the macOS taptic engine APIs similar to how they do on watchOS.
Right, they have software controls in place to prevent my trackpad buzzing for an hour straight. Good point. I’d assume Apple devs thought about how this could be abused, thought ahead, put a circuit breaker in there and said “call the api as much as you like”.
Well I don't know if that's the case, but I also don't know why your trackpad should brake after buzzing for an hour straight?
Your iPhone doesn't break from buzzing for an hour straight, developers are free to call the apis as much as they like. The taptic engines in both of the devices are pretty much the same thing, no?
Although, mildly related to your point: There was a Tesla software update last year that put a cooldown on the steppers moving the seats if the user fucks around with a seat position too much. Apparently _those_ were prone to overheat and brake.
Back in the day I had an AST 386 with a Miniscribe full height 40MB drive. When it was being accessed steadily, you could actually see the desk shaking. It wasn't as bad on my earlier computer that only had a half-height ST225.