News for hackers. Stuff that matters.
Re:The MacBook has a sensor that knows the exact angle of th... by amelius on Sunday September 07, 2025 @12:00PM (#45159345)
So doesn't seem specific to Apple hardware.

The only thing "Apple" here is that it's not exposed as a public API.

Re:The MacBook has a sensor that knows the exact angle of th... by unglaublich on Sunday September 07, 2025 @01:00PM (#45159920)
> Motion is tracked using the laptop camera via optical flow and mapped to continuous control over dynamics, while the sound is generated in real-time.

No, it's a different method.

Re:The MacBook has a sensor that knows the exact angle of th... by 1ceaham on Sunday September 07, 2025 @01:44PM (#45160433)
Author here. We checked for APIs like this at the time, but since approximately every laptop has a webcam, the cv approach is much more accessible. It would be a fun rewrite though; I’m sure polling this would be a few orders of magnitude more efficient. There was definitely lag if you ran the app on a very underpowered machine which did impact the “playability” of the velocity parameter.
Re:The MacBook has a sensor that knows the exact angle of th... by dlcarrier on Sunday September 07, 2025 @03:24PM (#45161350)
Apple goes much further than not offering an API: https://www.forbes.com/sites/jaymcgregor/2023/10/11/genius-n...