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

オープン
#51 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
66/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
3
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TMHSDigital/GH-Arcade のほかの issue

TMHSDigital/GH-Arcade の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。