Search Unity

Steam and Unity input issue.

Discussion in 'Editor & General Support' started by Tryggvienator, Feb 19, 2019.

  1. Tryggvienator

    Tryggvienator

    Joined:
    Feb 28, 2012
    Posts:
    17
    Hi, I have one user who is having a weird bug regarding mouse and keyboard controls.
    I set up the game with WSAD and mouse in mind. WSAD controls the player and the mouse for the reticule.

    But for him, WSAD controls the reticule and the mouse does nothing??

    It's a Unity3D engine. Default controls are keyboard and mouse.
    The game has just started.
    There is a video of it here:


    Could Steam be overriding the controls? putting some override control in place?

    Custom key control system:
    Player Movement control Code : (yes this could be prettier)
    if (Input.GetKey(GameKeyboardInput.GameInput.Up)) v = 1;
    if (Input.GetKey(GameKeyboardInput.GameInput.Down)) v = -1;
    if (Input.GetKey(GameKeyboardInput.GameInput.Left)) h = -1;
    if (Input.GetKey(GameKeyboardInput.GameInput.Right)) h = 1;

    where v and h is then used to create a movement vector which goes into a character controller.
    Nothing complex really.

    The Reticule just follows the mouse position on the screen.

    Any ideas?