@Override
	public void inputData(Map<String, Map<String, String>> input) {
		//name : index[] : answer
		Iterator<String> nameIterator = input.keySet().iterator();
		Map<String, String> indexToAnswers = input.get(nameIterator.next());
		String[] data = indexToAnswers.get("0").split(COLON_SEPARATOR);
		
				if (data[0].equals("0")) { //mouse move event
					int xMove = Integer.parseInt(data[1]);
					int yMove = Integer.parseInt(data[2]);
					Point p = MouseInfo.getPointerInfo().getLocation();
					int x = p.x;
					int y = p.y;
					r.mouseMove(x + xMove, y + yMove);
				} else if (data[0].equals("1")){ //mouse button event
					if (data[2].equals("0")){ //left mouse click
						r.mousePress(InputEvent.BUTTON1_MASK);
						r.waitForIdle();
						r.mouseRelease(InputEvent.BUTTON1_MASK);
					} else if(data[2].equals("1")){//right mouse click
						r.mousePress(InputEvent.BUTTON3_MASK);
						r.waitForIdle();
						r.mouseRelease(InputEvent.BUTTON3_MASK);
					} else if(data[2].equals("2")){//left mouse down
						r.mousePress(InputEvent.BUTTON1_MASK);
					} else if(data[2].equals("3")){//left mouse up
						r.mouseRelease(InputEvent.BUTTON1_MASK);
					} else if(data[2].equals("4")){//right mouse down
						r.mousePress(InputEvent.BUTTON3_MASK);
					} else if(data[2].equals("5")){//right mouse up
						r.mouseRelease(InputEvent.BUTTON3_MASK);
					}
				}
//				else if (data[0].equals("2")){//keyboard event
//					//System.out.println("received keyboard event: "+(char)(data[2]));
////					typeCharacter(r, Character.toString((char)data[2]) );
//					
//				}
				
	}