Hey JJS: I am new to Android Development and Java, but can you try the following changes and see if these do what they are supposed to do:
For File:
http://gitorious.org/~jjs/ags/ags-for-psp/blobs/psp/Android/app/src/com/bigbluecup/android/AgsEngine.javaLines 192 and 193 change to :
glue.mouseMoveX = (short) (ev.getX() * 5);
glue.mouseMoveY = (short) (ev.getY() * 5);
/// That was to change the cursor being in the wrong spot.
////These next code changes are so that a left click is one tap and a right click is holding two buttons on the screen instead of one.
After line 199:
Case MotionEvent.Action_Pointer_Down:
{
Glue.mouseClick = 2;
}
Replace line 111 with:
public boolean dispatchTouchEvent(View V, MotionEvent ev)
Replace lines 135 to 147 with:
case MotionEvent.ACTION_DOWN:
switch(v.getId())
{
long down_time = ev.getEventTime() - ev.getDownTime();
case R.id.btn1:
if (down_time < 150)
{
glue.clickMouse(EngineGlue.MOUSE_CLICK_LEFT);
break;
}
case R.id.btn2:
if (down_time < 150)
{
glue.clickMouse(EngineGlue.MOUSE_CLICK_RIGHT);
break;
}
case MotionEvent.ACTION_POINTER_DOWN:
switch(v.getId())
{
case R.id.btn1: if (down_time < 150)
{
glue.clickMouse(EngineGlue.MOUSE_CLICK_LEFT);
break;
}
case R.id.btn2:
if (down_time < 150)
{
glue.clickMouse(EngineGlue.MOUSE_CLICK_LEFT);
break;
}
-------------------------------
Also, perhaps create a menu option to show the Keyboard by using something somewhat like this:
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE))
.showSoftInput(editText, 0);
-------------------------------
Hope this works for you.