-1

Is it possible to change the sensitivity of the shake gesture in SpriteKit? Specifically, we want to trigger the shake gesture on a faster shake than the default. It's not clear from the Apple documentation: https://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/motion_event_basics/motion_event_basics.html.

This SO post is also outdated: iPhone App increase Shake gesture Sensitivity

Is the only option to implement a custom handler using accelerometer data? Or would using gyroscope data be better?

Community
  • 1
  • 1
Crashalot
  • 33,605
  • 61
  • 269
  • 439

1 Answers1

1

There's no setting for shake sensitivity. You can however use CoreMotion to create your method and set custom parameters for detecting movement/shaking of your device.

sangony
  • 11,636
  • 4
  • 39
  • 55