Search Issue Tracker

Fixed in 4.5.2



Found in


Issue ID




Screen.lockCursor under Linux breaks Input.GetAxis



-e: Screen.lockCursor under Linux breaks Input.GetAxis()

--open attached project
--run test scene in editor
--notice correct axis values
--build and run for Linux
--hold mouse button and move it around
--NOTICE axis values being all over the place he the build crashing in the end

Comments (34)

  1. shubhamswaraj2021

    Aug 18, 2020 17:03

    good one <a href="">lyricsauto</a>

  2. stigmamax

    May 19, 2020 20:04

    no mouse cursor on Linux Mint with Unity 5.6.2

  3. grobonom

    Feb 02, 2020 19:17

    This is kinda cheating ^^

    please reopen the vote !

  4. radiatoryang

    Jul 17, 2017 16:37

    in case anyone ends up here with Linux fullscreen mouse cursor / mouse input issues: there was also a UI-related mouse events bug from 5.6.0f1 - 5.6.2p3... make sure you patch to 5.6.2p3 to fix it

  5. Damianu

    Mar 06, 2017 03:45

    It's still not fixed, in most of games under wine mouse goes to right bottom.. Any workaround?

  6. thojoh370

    Oct 19, 2015 23:43

    I just found something which should've been obvious; if you're still experiencing this problem in October 2015 and it's related to the mouse acting strange when using lockCursor, keep in mind that lockCursor is in fact obsolete and the docs suggest using Cursor.lockState instead.

  7. Elderkarma

    Jan 13, 2015 21:36

    Can confirm bug still present in 4.6.1f1. Reproduced in fresh Ubuntu 14.04.1 load under VMWare 11.0.0 (with current VMWare tools version installed).

    Please re-open issue.

  8. Alloc

    Jan 12, 2015 10:22

    Can confirm this is not fixed in 4.5.5p4. Works for some people but not for all. It's definitely not "solved/fixed".

  9. DaneM

    Jan 05, 2015 00:17

    Update. I've found a partial workaround, based on this thread's advice:

    Going into "~/.config/unity3d/Zero Point Software/Interstellar Marines/prefs" and changing:

    <pref name="Screenmanager Is Fullscreen mode" type="int">1</pref>


    <pref name="Screenmanager Is Fullscreen mode" type="int">0</pref>

    ...Allows the mouse to look around, again. Of course, this makes the game "stuck" in windowed mode. Of course, it's not as fun, this way, but it is mostly playable.

    Please re-open this issue.

  10. aaronmcohen

    Dec 29, 2014 17:50

    Please reopen this issue as it is not resolved I have verified it under both the latest version of Fedora and Ubuntu.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.