Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

New Input System DualShock 2Dvector issues

Discussion in 'Input System' started by alea360, Feb 28, 2019.

  1. alea360

    alea360

    Joined:
    Mar 26, 2018
    Posts:
    6
    Hi,
    I start to use new input system and it work very nice, except when I want to use 2DVectorComposite with a DualShock Gamepad on PC.
    My configuration is on attachment piece.
    When I change by keyboard arrow, that work but with right ps4 stick, the system read I try to move to the left and the top.
    I don't know how I can fix that.
    Thank you for all the people will try to help me.
     

    Attached Files:

  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Regarding the setup, was wondering, what's the reason for going for a 2D Vector composite in this case? The right stick itself is a 2D vector and can be bound to directly. But might just no see something here :)

    Are you using the controller via Bluetooth or wired? Is this on OSX or Windows?

    We have some issues with the DS4 where it seems to behave differently when connected over Bluetooth rather than wired. We're looking into it.
     
    Miscellaneous likes this.
  3. alea360

    alea360

    Joined:
    Mar 26, 2018
    Posts:
    6
    Thanks for reply. I use wired connection on PC.
    If I don't need to use 2D vector Composite what is the best way to use DualShock Stick in new input system?
     
  4. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    You can bind directly to the stick. Add a single binding and then select rightStick or leftStick under Gamepad. Note that if you have set the action to an incompatible type (e.g. Button), those won't show up.

    Now I also realize what's going in the initial setup you have above and that it's actually working as intended.

    The left/right/up/down synthetic buttons on the sticks don't have directions. I.e. each one is just a [0..1] button. Means that rightStick/down, for example, isn't going from [0..-1] but rather just goes from [0..1] the same way that dpad/down does. If you want to have it go [0..-1] instead, simply put an Invert processor on the binding.
     
    Sederikku likes this.
  5. alea360

    alea360

    Joined:
    Mar 26, 2018
    Posts:
    6
    thank for the answer, I will try the different way. But New input system is a great features.
     
  6. MR_Ford

    MR_Ford

    Joined:
    Dec 27, 2013
    Posts:
    5

    I am still having that problem with the Bluetooth and wired inputs of the PS4 controller- have there been any workarounds for if.