| 45 | AndroidPlatState platState; |
| 46 | |
| 47 | AndroidPlatState::AndroidPlatState() |
| 48 | { |
| 49 | |
| 50 | |
| 51 | captureDisplay = true; |
| 52 | fadeWindows = true; |
| 53 | backgrounded = false; |
| 54 | minimized = false; |
| 55 | |
| 56 | quit = false; |
| 57 | |
| 58 | portrait = true;//-Mat Android is in portrait mode by default |
| 59 | |
| 60 | |
| 61 | // start with something reasonable. |
| 62 | desktopBitsPixel = ANDROID_DEFAULT_RESOLUTION_BIT_DEPTH; |
| 63 | desktopWidth = ANDROID_DEFAULT_RESOLUTION_X; |
| 64 | desktopHeight = ANDROID_DEFAULT_RESOLUTION_Y; |
| 65 | fullscreen = true; |
| 66 | |
| 67 | osVersion = 0; |
| 68 | |
| 69 | dStrcpy(appWindowTitle, "Android Torque Game Engine"); |
| 70 | |
| 71 | // Semaphore for alerts. We put the app in a modal state by blocking the main |
| 72 | alertSemaphore = Semaphore::createSemaphore(0); |
| 73 | |
| 74 | // directory that contains main.cs . This will help us detect whether we are |
| 75 | // running with the scripts in the bundle or not. |
| 76 | mainDotCsDir = NULL; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | //------------------------------------------------------------------------------ |