docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method RefreshInputDeviceIfNeeded

    RefreshInputDeviceIfNeeded()

    Updates the found input device used to read input from if it isn't valid. This should be called before attempting to read a value from the input device.

    Declaration
    protected bool RefreshInputDeviceIfNeeded()
    Returns
    Type Description
    bool

    Returns true if the input device is valid or if a valid one with matching characteristics was found.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)