Hacker News new | past | comments | ask | show | jobs | submit login
Mouse Support for Playdate (gingerbeardman.com)
68 points by zdw 6 months ago | hide | past | favorite | 7 comments



Dig the video's homage to Apple's "hello" https://support.apple.com/en-us/105132


The "hello" was first used during the Macintosh launch event in 1984 https://www.youtube.com/watch?v=2B-XwPjn9YY


This is neat but rather than this mouse interaction, I wish there is support in the simulator to translate linear mouse motion into circular crank motion, or absolute mouse position into absolute crank position. It would make it easier to debug games that require precise crank movements.


I admit I only discovered this earlier this week while wanting something similar, but: have you used the ‘mode’ that comes from double clicking the crank widget in the Simulator? It allows for very precise mouse control of* the crank and has made work on my current project so much easier!

(If I’ve misinterpreted what you’re looking for and/or this doesn’t do what you want, my apologies in advance!)


I am afraid mine doesn't do anything different when I double click, maybe it's platform specific? I am using simulator on Windows, SDK version 2.4.2.

What I wish for would be a mode where "crank position = (mouse screen X or Y) % 360" or something like that, preferably capturing the mouse cursor such that I can't accidentally click outside the simulator, even better if it wraps the mouse cursor around the screen like how Blender does it.


Oh no, hmm! I'm on 2.4.2 as well (build 166897) but on macOS.

> What I wish for would be a mode where "crank position = (mouse screen X or Y) % 360" or something like that, preferably capturing the mouse cursor such that I can't accidentally click outside the simulator, even better if it wraps the mouse cursor around the screen like how Blender does it.

This is exactly what it's doing for me (so hopefully there's a way to get it working for you!).

I took a peek at the help docs and I see this: https://help.play.date/manual/simulator/#crank-and-accelerom...

> "Double-clicking the crank circle will let you turn it just by moving your mouse."

(When I do this, I can release the mouse button and the cursor becomes 'bound' to the crank. As an indication, the normally white crank indicator turns red.)

Made a quick video showing the behavior: https://www.youtube.com/watch?v=iXoFcIHm0qU (Couldn't think of where to host, YouTube was the easiest.)


Wow, I have been missing out! I have started a thread on the dev forum instead. Thanks :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: