Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question Does not read the mouse delta

Discussion in 'Input System' started by VLRSOFT, Mar 31, 2022.

  1. VLRSOFT

    VLRSOFT

    Joined:
    Feb 29, 2020
    Posts:
    12
    Hi, I've already tried everything I can in my project, but I can't make the mouse delta read or get anything from it at all.
    For clarity, I will describe everything as it is in stages:
    2 projects - my 2st main one, the 1nd for the sake of the mouse test.
    2 scripts are essentially the same, but in different projects.
    1st script, located in the 1st project:
    upload_2022-3-31_14-12-11.png

    2st script, located in the 2st is my MAIN project:
    upload_2022-3-31_14-13-45.png

    Here are the mouse settings of the new input system in the test project:
    upload_2022-3-31_14-15-21.png
    :
    and here are the settings of the new input system in the main project:
    upload_2022-3-31_14-17-10.png


    actually, in the empty scenes of these projects, I add a script to an empty object - I run and:
    - in the test project, it reads both the mouse delta and the normalized displacement vector at startup.
    - in the main project, it reads the normalized displacement vector at startup, BUT DOES NOT READ the MOUSE DELTA.
    The project settings are exactly the same!
    Please help, and sorry for the crooked translation. Thx
     

    Attached Files:

  2. VLRSOFT

    VLRSOFT

    Joined:
    Feb 29, 2020
    Posts:
    12
    Problem solved!!!!!!!!!!!!! upload_2022-3-31_14-33-44.png
    A touchscreen simulation was enabled