Add a button combo that toggles ANALOG mode

Open
#172 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
game-dev

Research direction

Start by reviewing the linked SwanStation implementations, then locate the PS2 core's existing controller input and button-combination handling. The issue is done when a supported combo toggles ANALOG mode during gameplay, including after the game's startup screens; the exact combo and whether multiple options are needed remain to be decided.

Written by the indexing model from the issue text.

Description

Problem: Some PS2 games support the analog controls, but they reset them to digital only at the start of the game. Ridge Racer V always does this, and the only way to use analog controls in this game is to press an ANALOG button in the game.

https://github.com/cscd98/ps2/commit/a17af0859391ebe99f26f78f28c0768465b72fa8 The attempted implementation was to enable analog automatically at the start. But it doesn't help, seems like analog switch doesn't work at the start of the game, it works only after the logo screens.

Solution: I suggest adding a button combo that toggles analog mode, like in Swan Station core."L1 + R1 + Select" is a convenient one. Or "L3 + R3".
Here's a Swan Station implementation: https://github.com/libretro/swanstation/commit/261a09f
They've also added multiple combo options: https://github.com/libretro/swanstation/commit/7d8ce92

Dominant language
C
Stars
90
Forks
34
Avg merge
1d 17h
Merged PRs (30d)
9

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 libretro/parallel-ps2

All issues in libretro/parallel-ps2

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.