22 #ifndef BACKENDS_PLATFORM_IPHONE_IPHONE_COMMON_H 23 #define BACKENDS_PLATFORM_IPHONE_IPHONE_COMMON_H 25 #include "graphics/surface.h" 31 kInputMouseSecondDragged,
32 kInputMouseSecondDown,
34 kInputOrientationChanged,
36 kInputApplicationSuspended,
37 kInputApplicationResumed,
41 enum ScreenOrientation {
42 kScreenOrientationPortrait,
43 kScreenOrientationLandscape,
44 kScreenOrientationFlippedLandscape
47 enum UIViewSwipeDirection {
55 VideoContext() : asprectRatioCorrection(), screenWidth(), screenHeight(), overlayVisible(false),
56 overlayWidth(), overlayHeight(), mouseX(), mouseY(),
57 mouseHotspotX(), mouseHotspotY(), mouseWidth(), mouseHeight(),
58 mouseIsVisible(), filtering(false),
59 shakeXOffset(), shakeYOffset() {
63 bool asprectRatioCorrection;
64 uint screenWidth, screenHeight;
69 uint overlayWidth, overlayHeight;
74 int mouseHotspotX, mouseHotspotY;
75 uint mouseWidth, mouseHeight;
87 InternalEvent(InputEvent t,
int v1,
int v2) : type(t), value1(v1), value2(v2) {}
94 void iPhone_updateScreen();
96 const char *iPhone_getDocumentsDir();
97 bool iPhone_isHighResDevice();
99 uint getSizeNextPOT(uint size);
Definition: ios7_common.h:100
Definition: ios7_common.h:70