Skip to content

Gamepad API for Controller Support #69

@james-ralph8555

Description

@james-ralph8555

Hi! I've added controller support to lainTSX.

It uses the browser gamepad api to allow the user to play the game with a connected controller. For the control mapping, I've based the default mapping on the original PS1 manual.

Image

I've also defined two alternate control schemes. I've added a tab in the options menu for setup:

Image

A demo is available here: https://dmttdhl4kc2zt.cloudfront.net/game.html
note: I didn't have all of the sounds, and you have to navigate to /game.html instead of /game, but this doesn't reflect any changes I've done in code, just how the hosting works.

My fork: https://github.com/james-ralph8555/lainTSX

I've tested on chrome/firefox.
I've only tested with a PS3 controller, and don't own a bluetooth / xbox controller to test with.

Let me know if you have any feedback or if you’d like me to open a PR.

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