Search Issue Tracker

Fixed in 4.5.2

Votes

51

Found in

4.3.1f1

Issue ID

585517

Regression

No

Screen.lockCursor under Linux breaks Input.GetAxis

Linux

-

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

-repro:
--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. DaneM

    Dec 18, 2014 22:30

    I'm experiencing this problem in Interstellar Marines. I just tried to play it for the first time in about 3 months, and found that I couldn't look around.

    I'm using Linux Mint 17 AMD64 MATE.

    I'm using a desktop PC with a laser mouse (Logitech G9x), which everything recognizes, so far as I can tell. When I move the mouse, the view jitters, but re-centers to where it was. I can shoot by clicking; and moving with WASD works.

    I've tried verifying the Steam game cache and deleting/reinstalling it, to no effect.

    I've also tried moving "~/.config/unity3d/Zero Point Software/Interstellar Marines/", to no effect.

    Restarting the compositer with "marco --replace &" doesn't do help, nor does unchecking the box in "Control Center > Desktop Settings > Use Compositing".

    Has anyone figured out a way around this problem?

  2. invicticide

    Nov 19, 2014 06:00

    I am experiencing this issue on 4.5.5f1. :(

  3. leinardi

    Jul 06, 2014 12:43

    I'm still getting this issue in Interstellar Marines and The Fall.

    Ubuntu 14.04 LTS (64 bit)
    Versione del kernel: 3.14.10-031410-generic
    Unity (GNOME desktop environment)
    NVIDIA Corporation GeForce GTX 770/PCIe/SSE2 (NVIDIA 340.17)
    Mouse Roccat Kone XTD

  4. Soapsuds

    Jul 04, 2014 11:43

    I also have this issue. When my pooling rate is set to 500 or 2ms following this guide https://wiki.archlinux.org/index.php/Mouse_Polling_Rate every unity game I've tried breaks, mouse looks at the ceiling/graphics lock up and switching away gets a few more frames. Setting the pooling rate to 125hz or 8 ms fixes all my unity games.

    System information: http://pastebin.com/tDCys2jQ

  5. Tak

    Jul 03, 2014 21:58

    If you're experiencing this with your game, please try the latest patch release: http://forum.unity3d.com/threads/unity-patch-releases.246198/#post-1685804

  6. ibbbk

    Jun 30, 2014 18:25

    I can confirm what FAUGN said, lowering the scan frequency makes it more smooth, in my case, from 1000 Hz to 500 Hz (Razer Death Adder using razercfg, Ubuntu 14.04 LTS).

  7. Faugn

    Jun 15, 2014 21:46

    Note regarding my previous comment and Scaine comment: changing the DPI does not seem to impact the issue, only changing the scan resolution.

  8. Faugn

    Jun 15, 2014 21:44

    I just did some testing with my mouse (a Razer DeathAdder) in Interstellar Marines, and if I lower the scan frequency from 1000 Hz to 125 Hz using razercfg (razercfg -f 1:125 -p1) then it's almost smooth when moving the mouse and not moving (the character) at the same time, but still a little jerky when moving around too. At least it's usable. I still have the same problem with my trackball (which uses a 1000 Hz polling rate).

  9. Scaine

    Jun 14, 2014 20:50

    Got an update - my mouse is a high-resolution Corsair device. When I swapped in a stock Dell mouse to test, the issue is gone. This fixed both Interstellar Marines and Among The Sleep. So, I'm guessing the issue is related to the DPI of the mouse being used? Does Unity somehow not sample large/high values correctly?

  10. liberty_nz

    Jun 14, 2014 07:05

    Having this issue with Rust. Here is the relevant parts of inxi -F

    System: Host: wanda Kernel: 3.13.0-29-generic i686 (32 bit) Desktop: KDE 4.13.0 Distro: Ubuntu 14.04 trusty
    Machine: Mobo: Gigabyte model: P55-UD3 version: x.x Bios: Award version: F3 date: 07/31/2009
    CPU: Quad core Intel Core i5 CPU 750 (-MCP-) cache: 8192 KB flags: (lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx)
    Clock Speeds: 1: 2793.00 MHz 2: 1197.00 MHz 3: 1197.00 MHz 4: 1197.00 MHz
    Graphics: Card: NVIDIA G92 [GeForce GTS 250]
    X.Org: 1.15.1 drivers: nvidia (unloaded: fbdev,vesa,nouveau) Resolution: 1360x768@60.0hz
    GLX Renderer: GeForce GTS 250/PCIe/SSE2 GLX Version: 3.3.0 NVIDIA 331.38

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.