Search Unity

getaxis returns zero after GetOpenFileName on some windows 10 pc

Discussion in 'Windows' started by tufeixp, Feb 28, 2020.

  1. tufeixp

    tufeixp

    Joined:
    Sep 6, 2015
    Posts:
    22
    I find my program getaxis() run well on the target pc, but will always return 0 after call for a windows browser window and return. This only happen on one target pc, which operation system was clone installed. The only difference in the player log is, I got the warning line on it:
    XInput1_3.dll not found. Trying XInput9_1_0.dll instead...
    I tried to reinstall the directX driver, however, nothing change.

    I also tried with a simplest test program and tried with all the possible settings and combinations to the ofn parameters, and updated my unity to 2019.3.2f1, still unsolved!

    Looks like the getaxis() module lost it's data source after this kind of topmost window switch, only on one machine.

    Any one Help!
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Does "C:\Windows\System32\xinput1_3.dll" exist on the target machine? If not, that means the Windows installation is corrupted... there's not much we can do in that case.
     
  3. tufeixp

    tufeixp

    Joined:
    Sep 6, 2015
    Posts:
    22
    It is there, and same under SysWOW64 path. I have checked the crc and tried to overide it with a copy from a good computer, nothing changes.