x


Win7 elo Touchscreen GetMouseButton TimeDelay

Hi

I'm using Unity3.5 Win7 and an elo Touchscreen.

While using Input.GetMouseButton I press the Finger onto the touchscreen and then I have to wait 4 or 5 seconds until Input.GetMouseButton reacts.

Example: I add this script to a cube:

using UnityEngine;
using System.Collections;

public class ChangeColler : MonoBehaviour {

    Color cDefault = Color.green;
    Color cActiv = Color.red;

    Material myMat;

    void Start () {
        myMat = renderer.material;
        myMat.color = cDefault;
    }

    void Update () {
        if(Input.GetMouseButton( 0 ))
        {
            myMat.color = cActiv;
        }
        else
        {
            myMat.color = cDefault;
        }
    }
}

After pressing the touchscreen I have to wait 4 or 5 seconds until the Cube changes the Color.

I have the same Problem with GetMouseButton and GetMouseButtonDown.

I don't have this delay while using the mouse. (instead of the touchscreen)

Any idea of getting rid of this Timedelay?

Thanks.

more ▼

asked Apr 02 '12 at 01:35 PM

mvx gravatar image

mvx
0 1 1 1

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x64
x12
x7

asked: Apr 02 '12 at 01:35 PM

Seen: 512 times

Last Updated: Apr 02 '12 at 01:35 PM