Skip to content

One Stick is Being Mapped to Two Controllers and I Can't Tell Why #18

Description

@UncleLeoTheDad

I thought I had everything working, but I just ran some tests on gamepad-tester.com and am seeing some strange behavior. Here's my mapping:

{
    "LShiftKey": [0, "A"],
    "Z": [0, "B"],
    "LControlKey": [0, "X"],
    "LMenu": [0, "Y"],

    "D1": [0, "Start"],
    "D5": [0, "Back"],
    
    "Up": [0, "Up"],
    "Down": [0, "Down"],
    "Left": [0, "Left"],
    "Right": [0, "Right"],

    "Space": [0, "RightBumper"],
    "X": [0, "RightTrigger"],



    "W": [1, "A"],
    "C": [1, "B"],
    "A": [1, "X"],
    "S": [1, "Y"],

    "D2": [1, "Start"],
    "D6": [1, "Back"],
    
    "R": [1, "Up"],
    "F": [1, "Down"],
    "D": [1, "Left"],
    "G": [1, "Right"],

    "Q": [1, "RightBumper"],
    "T": [1, "RightTrigger"],




    "O": [2, "A"],
    "Oem1": [2, "B"],
    "RControlKey": [2, "X"],
    "RShiftKey": [2, "Y"],

    "D3": [2, "Start"],
    "D7": [2, "Back"],
    
    "I": [2, "Up"],
    "K": [2, "Down"],
    "J": [2, "Left"],
    "L": [2, "Right"],

    "Return": [2, "RightBumper"],
    "Oem7": [2, "RightTrigger"],



    "M": [3, "A"],
    "OemPeriod": [3, "B"],
    "B": [3, "X"],
    "E": [3, "Y"],

    "D4": [3, "Start"],
    "D8": [3, "Back"],
    
    "Y": [3, "Up"],
    "N": [3, "Down"],
    "V": [3, "Left"],
    "U": [3, "Right"],

    "H": [3, "RightBumper"],
    "D9": [3, "RightTrigger"]
}

The keyboard is actually triggered via iPAC, which I've confirmed is mapped correctly and separately. That said, whenever I use the joystick for player three (index 2), gamepad-tester shows both player 1 and player 3 being triggered. In other words Index2.Up ("I") seems to also trigger Index0.Up. Index0.Up ("Up") does NOT trigger Index2.Up.

Now the funny thing is that my button mappings for Index 0 and Index 2 work fine and are kept separate. My only guess is that you have some defaults set up for the Analog sticks that are somehow still getting utilized. Could that be? If so, is there a way to have a single key map to both d-pad up and analog-left up to keep things consistent?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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