Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved New Input System does not respond to pressing when using a remmeper.

Discussion in 'Input System' started by BGCH, Dec 15, 2021.

  1. BGCH

    BGCH

    Joined:
    Nov 23, 2017
    Posts:
    20
    the input system does not respond to pressing when using a remmeper.
    Users in my game use remappers to be able to use the side mouse buttons in webgl.
    After switching to the new input system, the game almost never responds to pressing with a remapper.
    Tell me how you can fix this? this is critical for webgl because in the browser, clicking the side buttons of the mouse changes pages.
    For the test, I used X-Mouse Button Control
     
  2. BGCH

    BGCH

    Joined:
    Nov 23, 2017
    Posts:
    20
    I just checked the input using the Input Debug Tool and it seems that the button that the remapper simulates is being registered, but the input from the mouse is read this way despite the fact that the option to block mouse input is enabled in the remapper
     
  3. BGCH

    BGCH

    Joined:
    Nov 23, 2017
    Posts:
    20
    I found a solution.
    I used ReadValue<float>() to check if the button was pressed, now I replaced that with WasPressedThisFrame() and it works great.