Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Issue with key input on build 2015101801 on Arch Linux

Discussion in 'Linux' started by gsingh93, Nov 29, 2015.

  1. gsingh93

    gsingh93

    Joined:
    Jan 24, 2014
    Posts:
    3
    I used the original build of Unity on Linux and everything worked fine, but I updated today to build #2015101801
    on Arch Linux, and I'm having issues with player movement now.

    I've created a new project, created a new Cube, and attached this script to it:
    Code (csharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class Player : MonoBehaviour {
    5.         void Update () {
    6.             if (Input.GetKeyUp(KeyCode.UpArrow)) {
    7.                 Debug.Log("Up");
    8.                 transform.position = new Vector3(transform.position.x + 1f, 0f, 0f);
    9.             }
    10.         }
    11. }
    12.  
    Two issues happen. First, if "Maximize on Play" is not selected, focus is lost from the Game view after each key press.

    Second, I have to hit the arrow keys many times (up to 30 seconds in some cases), to get any movement on the screen.
     
  2. Jjules

    Jjules

    Joined:
    Dec 25, 2012
    Posts:
    33
    Im having a similar issue. Anybody?
     
  3. gsingh93

    gsingh93

    Joined:
    Jan 24, 2014
    Posts:
    3
    Can any Unity developers repro this issue?