1 |
51c25e4e
|
Leszek Koltunski
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
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 |
3103c3c8
|
Leszek Koltunski
|
import java.io.InputStream;
|
15 |
|
|
|
16 |
51c25e4e
|
Leszek Koltunski
|
public interface OperatingSystemInterface
|
17 |
|
|
{
|
18 |
3103c3c8
|
Leszek Koltunski
|
///////////////////////////////////////////
|
19 |
|
|
// SCREEN
|
20 |
|
|
///////////////////////////////////////////
|
21 |
|
|
int getScreenDensity();
|
22 |
|
|
|
23 |
|
|
///////////////////////////////////////////
|
24 |
|
|
// TOUCH CONTROL
|
25 |
|
|
///////////////////////////////////////////
|
26 |
a7c72edb
|
Leszek Koltunski
|
int ACTION_DOWN_1 = 0;
|
27 |
|
|
int ACTION_UP_1 = 1;
|
28 |
|
|
int ACTION_DOWN_2 = 3;
|
29 |
|
|
int ACTION_UP_2 = 4;
|
30 |
|
|
int ACTION_MOVE = 5;
|
31 |
82b0cf8e
|
Leszek Koltunski
|
|
32 |
|
|
int INVALID_POINTER_ID = -1;
|
33 |
51c25e4e
|
Leszek Koltunski
|
|
34 |
|
|
int getAction();
|
35 |
dfa958c7
|
Leszek Koltunski
|
void upOneOfThem();
|
36 |
51c25e4e
|
Leszek Koltunski
|
boolean isFirstPressed();
|
37 |
|
|
boolean isSecondPressed();
|
38 |
82b0cf8e
|
Leszek Koltunski
|
void pressFirst();
|
39 |
|
|
void unpressFirst();
|
40 |
|
|
void pressSecond();
|
41 |
|
|
void unpressSecond();
|
42 |
51c25e4e
|
Leszek Koltunski
|
float getFirstX();
|
43 |
|
|
float getFirstY();
|
44 |
|
|
float getSecondX();
|
45 |
|
|
float getSecondY();
|
46 |
3103c3c8
|
Leszek Koltunski
|
|
47 |
|
|
///////////////////////////////////////////
|
48 |
|
|
// LOCAL FILES
|
49 |
|
|
///////////////////////////////////////////
|
50 |
|
|
InputStream openLocalFile(String name);
|
51 |
|
|
InputStream openLocalFile(int id);
|
52 |
51c25e4e
|
Leszek Koltunski
|
}
|