Skip to content

Fraypad v0.5.4

Choose a tag to compare

@atharva-potdar atharva-potdar released this 29 Nov 10:11
· 17 commits to main since this release
b50428c

What's New in v0.5.4

Touch UX & Gyro

  • Unified ABXY Voronoi + hysteresis: Face buttons snap touches within the diamond cluster to the nearest button center to eliminate dead-gap misses, and require a 15% closer move before switching buttons while sliding to prevent boundary chatter.
  • Follow-thumb floating left stick: Dragging past the stick radius now pulls the origin behind your thumb so direction reversals cross neutral immediately without dead travel.
  • Optional axial deadzone: Added an Axial Deadzone (snap cardinals) toggle in Settings to clamp minor cross-axis bleed on near-cardinal stick inputs.
  • Android system gesture exclusion & tick haptics: Applied systemGestureExclusion() on the gamepad canvas so edge swipes don't steal quick flicks, and switched tap feedback to EFFECT_TICK / EFFECT_CLICK on Android Q+.
  • Snappy gyro steering: Removed EMA smoothing, switched to SENSOR_DELAY_FASTEST, tightened the deadzone to 0.5 deg, and used a linear tilt curve.

Connection & Onboarding

  • Instant disconnect & same-slot reconnect: Bye packets are now sent off the Android main thread before closing or reopening the socket, avoiding NetworkOnMainThreadException and freeing the current slot immediately.
  • Settings button clarity: Save & Reconnect is now the primary action, with Connect greyed out when already connected and Disconnect greyed out when disconnected.
  • Port fallback, lockfile & LAN IP output: fraypad now binds its UDP socket before creating uinput devices, falls back across ports 54321..=54325 when --port isn't specified, prevents accidental duplicate instances via $XDG_RUNTIME_DIR/fraypad.lock, and prints the machine's LAN IP on startup.
  • Faster, more reliable LAN discovery: scanLan() probes 54321 first across 255.255.255.255, subnet broadcasts, and the last known host (with a 200ms fallback to 54322..=54325), shows results immediately, auto-fills single matches, and runs a silent fallback scan on launch if a saved address doesn't respond within 1.5s.