Project

General

Profile

« Previous | Next » 

Revision a7c72edb

Added by Leszek Koltunski over 2 years ago

Move the interaction with touchscreen to the OSInterface (part3)

View differences:

src/main/java/org/distorted/objectlib/helpers/OperatingSystemInterface.java
11 11

  
12 12
///////////////////////////////////////////////////////////////////////////////////////////////////
13 13

  
14
import android.view.MotionEvent;
15

  
16 14
public interface OperatingSystemInterface
17 15
  {
18
  int ACTION_DOWN_1 = MotionEvent.ACTION_DOWN;
19
  int ACTION_UP_1   = MotionEvent.ACTION_UP;
20
  int ACTION_DOWN_2 = MotionEvent.ACTION_POINTER_DOWN;
21
  int ACTION_UP_2   = MotionEvent.ACTION_POINTER_UP;
22
  int ACTION_MOVE   = MotionEvent.ACTION_MOVE;
16
  int ACTION_DOWN_1 = 0;
17
  int ACTION_UP_1   = 1;
18
  int ACTION_DOWN_2 = 3;
19
  int ACTION_UP_2   = 4;
20
  int ACTION_MOVE   = 5;
23 21

  
24 22
  int INVALID_POINTER_ID = -1;
25 23

  

Also available in: Unified diff