/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Component; /** * * @author LordOfTheWyrms */ public class GoogleTV { // private boolean inDrag = false; private float lastX; private float lastY; public GoogleTV(){} public boolean sendCommand(int command,float X, float Y) { if(command == 1) { //Send command to start GoogleTV connection } else if(command == 2) { lastX = X; lastY = Y; //Send command for click on X,Y } else if(command == 3) { //Send command to drag item at lastX,lastY to X,Y lastX = X; lastY = Y; } else if(command == 4) { //Send command to terminate GoogleTV interaction } return true; //return whether completed successfully } }