Left-handed option (stick coming in from the left)

Aperta
#32 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
swift
Ambito
desktop

Direzione di ricerca

Start with Sources/TinyHand/ArmView.swift at the grip placement linked in the issue. Trace how the grip offset and clamp are calculated, then inspect how the arm and hand layers are drawn to understand what must be mirrored. Done means a left-handed setting makes the stick enter from the left and displays a left hand; the issue does not name a test to run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Thanks for TinyHand, it's a lovely little thing.

Could there be a left-handed option? At the moment the stick always comes in from the right of the pointer. A setting to mirror it, so the stick comes in from the left and the hand is a left hand, would be great for left-handers.

From a quick look, the grip is placed to the right of the pointer here:

https://github.com/nilbuild/tinyhand/blob/da98f98d529971297487b0ec6ef07dc549555686/Sources/TinyHand/ArmView.swift#L123

so it might be a case of flipping that offset (and the clamp) and mirroring the arm and hand layers horizontally. I haven't tried it, so apologies if it's more involved than that.

Lingua principale
Swift
Stelle
787
Fork
80
Merge medio
1g 21h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nilbuild/tinyhand

Tutte le issue di nilbuild/tinyhand

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.