Samsung Trackpad..

I need to test an application in a Samsung Galaxy Y 5512, those phones have a touchscreen but im wondering if is it possible to handle the input events from the Optical trackpad?..

Problem solved :p…

It is very easy indeed, just needed a bit more of “google” jeje…

The trackpad/trackball works as a joystick for Unity.

Here is the sample code:

void OnGUI()
{
//Trackpad movement…
GUI.Label(new Rect(10, 50, 200, 20), "Trackball: " + Input.GetAxis(“Horizontal”) + Input.GetAxis(“Vertical”) );

//trackpad clicked?
GUI.Label(new Rect(10, 100, 200, 20), "Boton: " + clicked );
}

void Update () {

//KeyCode.JoystickButton0 is Button 0 on any joystick
// Button0 is assigned to the trackpad “click”.
if(Input.GetKeyDown(KeyCode.JoystickButton0))
clicked = true;
}