Skip to content

experiment: investigate DualSense gyro typing #77

Closed

Description

@nextestudios

Summary

Investigate pointing at keys with the DualSense gyroscope as an optional input method for the virtual keyboard.

Motivation

Gyro aiming can be faster than the D-pad for text entry.

Requirements

  • SDL3 sensor API (SDL_GAMEPAD_SENSOR_GYRO); strictly optional and off by default.
  • Sensitivity, calibration, smoothing, deadzone and a recenter button.
  • Full fallback: every key reachable with the D-pad; no feature depends on gyro.

Controller UX

Hold a button (e.g. L2) to aim with gyro; South/A types the highlighted key; release to return to D-pad control.

Technical Notes

Sdl3InputBackend sensor enablement; a pointer layer over VirtualKeyboard focus.

Acceptance Criteria

  • Prototype behind a setting; document findings in docs/decisions.

Testing

Manual testing on DualSense (USB and Bluetooth).

Dependencies


Priority: low · Milestone: 8 · Experimental

Activity

  1. added
    priority: low
    type: experiment
    area: controller
    area: keyboard
    on Sep 27, 2026
  2. added
    moscow: won't
    and removed
    priority: low
    on Sep 27, 2026
  3. nextestudios commented on Sep 27, 2026

    @nextestudios
    OwnerAuthor

    Prototype merged in #204 behind Configurações → Controles → Mira por giroscópio no teclado (off by default). Findings and design notes are in docs/decisions/0007. One deviation: it doesn't use hold-L2-to-aim, because LT/RT already move the caret on the keyboard. Still pending, and only possible on hardware (checklist in docs/TESTING.md): DualSense over USB and Bluetooth, resting drift, tremor while typing with the D-pad, and timing D-pad vs gyro. Record the results in 0007 before promoting the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: controllerarea: keyboardmoscow: won'ttype: experiment

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions