• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.replica.replicaisland;
2 
3 import android.view.MotionEvent;
4 
5 public class SingleTouchFilter extends TouchFilter {
6 
updateTouch(MotionEvent event)7 	public void updateTouch(MotionEvent event) {
8 		ContextParameters params = sSystemRegistry.contextParameters;
9     	if (event.getAction() == MotionEvent.ACTION_UP) {
10     		sSystemRegistry.inputSystem.touchUp(0, event.getRawX() * (1.0f / params.viewScaleX),
11     				event.getRawY() * (1.0f / params.viewScaleY));
12     	} else {
13     		sSystemRegistry.inputSystem.touchDown(0, event.getRawX() * (1.0f / params.viewScaleX),
14     				event.getRawY() * (1.0f / params.viewScaleY));
15     	}
16     }
17 	@Override
reset()18 	public void reset() {
19 	}
20 
21 }
22