Skip to content

SDL Hat support code suggestion #89

@noabody

Description

@noabody

I was looking at platform/libpicofe/in_sdl.c and see that the input layouts follow this standard closely:
SDL Quick Reference
Simply changing line 276 from 1 to 8 allows stick "2" to control the GUI.

		if (event->jaxis.axis > 8)

Unfortunately attempts to map stick "1" lead to \x00 for movement along any directional. Without either HAT support or a Joystick, one must use something like AntiMicro to map the gamepad to keyboard events to play a game.

This issue isn't specifically for the developer, I simply don't have the programming skils (any actually) to alter the code in a meaningful way.

Perhaps someone else would be able to update the code for said functionality. Thank you for your attention and the beautiful emulator work.

  • Ubuntu 18.04, Bionic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions