mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
49 lines
574 B
Java
49 lines
574 B
Java
package com.virtualapplications.play;
|
|
|
|
import android.graphics.*;
|
|
|
|
class VirtualPadItem
|
|
{
|
|
private int _pointerId = -1;
|
|
protected RectF _bounds;
|
|
|
|
public VirtualPadItem(RectF bounds)
|
|
{
|
|
_bounds = bounds;
|
|
}
|
|
|
|
public void setPointerId(int pointerId)
|
|
{
|
|
_pointerId = pointerId;
|
|
}
|
|
|
|
public int getPointerId()
|
|
{
|
|
return _pointerId;
|
|
}
|
|
|
|
public RectF getBounds()
|
|
{
|
|
return _bounds;
|
|
}
|
|
|
|
public void onPointerDown(float x, float y)
|
|
{
|
|
|
|
}
|
|
|
|
public void onPointerUp()
|
|
{
|
|
|
|
}
|
|
|
|
public void onPointerMove(float x, float y)
|
|
{
|
|
|
|
}
|
|
|
|
public void draw(Canvas canvas)
|
|
{
|
|
|
|
}
|
|
}
|