1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2023 Leszek Koltunski //
|
3
|
// //
|
4
|
// This file is part of Magic Cube. //
|
5
|
// //
|
6
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
|
10
|
package org.distorted.objectlib.helpers;
|
11
|
|
12
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
13
|
|
14
|
import android.view.MotionEvent;
|
15
|
|
16
|
public interface OperatingSystemInterface
|
17
|
{
|
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;
|
23
|
|
24
|
int INVALID_POINTER_ID = -1;
|
25
|
|
26
|
int getScreenDensity();
|
27
|
|
28
|
int getAction();
|
29
|
void upOneOfThem();
|
30
|
boolean isFirstPressed();
|
31
|
boolean isSecondPressed();
|
32
|
void pressFirst();
|
33
|
void unpressFirst();
|
34
|
void pressSecond();
|
35
|
void unpressSecond();
|
36
|
float getFirstX();
|
37
|
float getFirstY();
|
38
|
float getSecondX();
|
39
|
float getSecondY();
|
40
|
}
|