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

Abierto
#32 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
swift
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Swift
Estrellas
787
Forks
80
Merge medio
1 d 21 h
PR fusionados (30 d)
2

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nilbuild/tinyhand

Todos los issues de nilbuild/tinyhand

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.