libretro / libretro/RetroArch

[Feature request] implement a RETRO_DEVICE for mahjong

Open
#15,772 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

Following up https://github.com/libretro/FBNeo/issues/1057 where a user tried to play mahjong games on switch.

While the language barrier made things awkward, i believe what he meant by "mahjong mask" is not
mahjong mask
but something akin to the virtual keyboards and button overlays that are common on mobile devices.

I think a good solution would be the implementation of a RETRO_DEVICE_MAHJONG.
The benefits include :

  • a standardized layout, like the retropad
  • awareness in the frontend, so that it can handle them however it wants (remapping to keyboard/gamepad, virtual mahjong controller, ...)

Currently, core developpers are basically being forced to map mahjong games to RETRO_DEVICE_KEYBOARD, which is probably far from ideal for mobile device users.

FWIW "mahjong controllers" also exist on consoles :
famicom
neogeo

Contributor guide

Open the contributing guide

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.

Research direction

Start by reading the linked libretro/FBNeo issue and this proposal's discussion to understand the required mahjong controls and frontend expectations. Done means agreeing on the RETRO_DEVICE_MAHJONG interface, its standardized layout, and how frontends can handle it; the issue does not name implementation files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
api, game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.