Touch controls: haptics, size option and left-handed layout

Aberta
#51 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
66/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript

Direção de pesquisa

Read shared/touch.ts for stick positioning and button radii, then shared/settings.ts and src/hub/settings-panel.ts to follow how settings are stored and displayed. Run npm run typecheck and npm run build after adding the touch options; done means touch users can mirror and resize the layout, with haptic feedback when enabled. Per-game button placement has not been audited for mirroring.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

accessibility enhancement severity: low

Summary

The virtual stick is fixed to the left, virtual buttons have a hard-coded radius, and there is no press feedback. Settings have no touch options.

Where

  • shared/touch.ts:75-82 (stick position), shared/touch.ts:122-128 (button radius)
  • shared/settings.ts:33-43
  • index.html:86-88 (settings dialog covers keyboard only)

Proposal

Add touch: { haptics, scale, mirrored } to settings. Call navigator.vibrate?.(10) on virtual button press when enabled, multiply radii by scale, and add a helper that mirrors x for the stick and buttons. Show the section on the hub only on touch devices. Per-game button placement was not audited for mirroring.

Who benefits

Left-handed players and players with motor impairments.

Acceptance criteria

  • Touch layout can be mirrored and resized from Settings

Getting started

  • Relevant files: shared/touch.ts, shared/settings.ts, src/hub/settings-panel.ts
  • Run locally: npm install, then npm run dev
  • Checks: npm run typecheck and npm run build (there is no test suite yet)
  • Related docs: README.md

Filed by repo-audit/full-audit at b001f5d. Severity: low. Effort: M. audit-key: enhancement|shared/touch.ts|VirtualButton

Linguagem predominante
TypeScript
Estrelas
3
Forks
3
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TMHSDigital/GH-Arcade

Todas as issues de TMHSDigital/GH-Arcade

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.