Search Unity

Question How do I change the New Input System Local Coop change control scheme?

Discussion in 'Input System' started by MusaKaya, Jun 23, 2021.

  1. MusaKaya

    MusaKaya

    Joined:
    Nov 25, 2020
    Posts:
    3
    Hi, I'm doing a 2-player game with the new entry system. I don't create my first player, it's always on stage, my second player shows up with a button. I want to build an access system like I drew below.

    I have 3 different input actions :
    Player = all keyboard and gamepad
    player1 = left half of keyboard
    player2=right half of keyboard

    P1 - P2 = half of the keyboard is within two -- İnput Actions = "player1" and "player2"
    P1 - P2 = two different gamepads -- İnput Actions = "Player"
    P1 = gamepad, P2 = half of keyboard -- İnput Actions = "Player" and "player2"
    P1 = half of keyboard, P2 = gamepad -- İnput Actions = "player1" and "Player"

    How can I do such a control scheme when my second character is spawn? How do I find connected gamepads? and how can I adjust the control scheme of the second character to the keyboard by instantly removing the second gamepad? Thanks in advance
     

    Attached Files:

  2. MusaKaya

    MusaKaya

    Joined:
    Nov 25, 2020
    Posts:
    3
  3. MusaKaya

    MusaKaya

    Joined:
    Nov 25, 2020
    Posts:
    3