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

Open
#32 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
swift
Domain
desktop

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Swift
Stars
787
Forks
80
Avg merge
1d 21h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nilbuild/tinyhand

All issues in nilbuild/tinyhand

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.