Hype Card Events (fire events based on true scene changes and interactions)

A Tumult Hype extension that provides enhanced scene transition and interaction events. It fires HypeCardUnload, HypeCardPrepare, and HypeCardLoad events specifically when the scene name (your "card") changes, intelligently ignoring layout-only switches. Additionally, it introduces HypeCardInteraction for detailed pointer interaction tracking, including swipe detection. You can also define a single HypeCardEvent handler to catch all card-related events.

The swipe detection is much less sophisticated than the one in Hype itself. I might upgrade that in a future version because Hype is using an angled cone with some extra rules. But for now, this does the job pretty well.
3 Likes

Cool! Do you have an example document that makes use of this?

1 Like

Here you go (just some simple console logs to demo):
HypeCardEvents.hype.zip (182,1 KB)

1 Like

I read the title as HyperCard. :smile:

1 Like

Awesome, that makes it more clear. Thanks!