Revision 3103c3c8
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/objectlib/helpers/OperatingSystemInterface.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
13 | 13 |
|
14 |
import java.io.InputStream; |
|
15 |
|
|
14 | 16 |
public interface OperatingSystemInterface |
15 | 17 |
{ |
18 |
/////////////////////////////////////////// |
|
19 |
// SCREEN |
|
20 |
/////////////////////////////////////////// |
|
21 |
int getScreenDensity(); |
|
22 |
|
|
23 |
/////////////////////////////////////////// |
|
24 |
// TOUCH CONTROL |
|
25 |
/////////////////////////////////////////// |
|
16 | 26 |
int ACTION_DOWN_1 = 0; |
17 | 27 |
int ACTION_UP_1 = 1; |
18 | 28 |
int ACTION_DOWN_2 = 3; |
... | ... | |
21 | 31 |
|
22 | 32 |
int INVALID_POINTER_ID = -1; |
23 | 33 |
|
24 |
int getScreenDensity(); |
|
25 |
|
|
26 | 34 |
int getAction(); |
27 | 35 |
void upOneOfThem(); |
28 | 36 |
boolean isFirstPressed(); |
... | ... | |
35 | 43 |
float getFirstY(); |
36 | 44 |
float getSecondX(); |
37 | 45 |
float getSecondY(); |
46 |
|
|
47 |
/////////////////////////////////////////// |
|
48 |
// LOCAL FILES |
|
49 |
/////////////////////////////////////////// |
|
50 |
InputStream openLocalFile(String name); |
|
51 |
InputStream openLocalFile(int id); |
|
38 | 52 |
} |
Also available in: Unified diff
Move opening local files to the OSInterface