Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile events #1617

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Mobile events #1617

wants to merge 5 commits into from

Conversation

Sesena0u0
Copy link

@Sesena0u0 Sesena0u0 commented Jul 17, 2024

This extension adds specific events for mobile devices to TurboWarp. It allows you to use swipe, tap events, and more.

  • Swipe detection: Allows checking if a swipe has been detected and provides the swipe direction, with 0 degrees pointing upwards.
  • Tap detection: Allows checking if a tap has been detected.
  • Long press detection: Allows checking if a long press has been detected.
  • Pinch open detection: Allows checking if a pinch open gesture has been detected.
  • Pinch close detection: Allows checking if a pinch close gesture has been detected.
  • Number of touches: Provides the number of touch points currently detected on the screen.
  • Landscape orientation: Allows checking if the device is in landscape mode.
  • Device orientation: Provides the device's orientation angle.
  • Mobile device verification: Allows checking if the user is using a mobile device.

@CubesterYT
Copy link
Collaborator

Third similar extension having to do with touches on the screen, wow.

@Drago-Cuven
Copy link

Third similar extension having to do with touches on the screen, wow.

this one "does" have more useful blocks though.

@Drago-Cuven
Copy link

@Sesena0u0 for mobile you shoud call it tap or press, not click. this is to avoid confusion.

@Sesena0u0
Copy link
Author

@Sesena0u0 for mobile you shoud call it tap or press, not click. this is to avoid confusion.

Yes you are right, I will correct that. Thank you

@Drago-Cuven
Copy link

something I must alert any "touch" based extension about, not every device with a touch screen is a mobile device. there are even windows 11 computers with touch screens. please keep this in mind when creating/editing extensions like this.

that being said, tapping works, but all swiping and pinching blocks do not work.

@Drago-Cuven
Copy link

I am on a touchscreen chromebook

Copy link

@GAPCefor GAPCefor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's cool, it works well and I guess this game was created with it?
https://sesena0u0.itch.io/two-switch

@GarboMuffin GarboMuffin added the pr: new extension Pull requests that add a new extension label Oct 14, 2024
Copy link

@Thebloxers998 Thebloxers998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice extension

@Thebloxers998
Copy link

I am on a touchscreen chromebook

I'm on a windows touchscreen (you dont need to reply)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: new extension Pull requests that add a new extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants