IOS7: Implement port-specifc option widget
Include the newly added ios7_options implementation to the project. Change the file type to .mm which is Objective C++ to be able to use the @availble mechanism. Implement virtual functions and fix build errors in initial code. Also add help section for the tvOS port when building for tvOS. Add ios7_options to POTFILES to get automatic translation on the help section.
This commit is contained in:
parent
61bbe1187b
commit
a9e44384e9
5 changed files with 67 additions and 24 deletions
|
@ -87,12 +87,13 @@ public:
|
|||
OSystem_iOS7::OSystem_iOS7() :
|
||||
_mixer(NULL), _lastMouseTap(0), _queuedEventTime(0),
|
||||
_mouseNeedTextureUpdate(false), _secondaryTapped(false), _lastSecondaryTap(0),
|
||||
_screenOrientation(kScreenOrientationFlippedLandscape), _mouseClickAndDragEnabled(false),
|
||||
_screenOrientation(kScreenOrientationFlippedLandscape),
|
||||
_gestureStartX(-1), _gestureStartY(-1), _fullScreenIsDirty(false), _fullScreenOverlayIsDirty(false),
|
||||
_mouseDirty(false), _timeSuspended(0), _lastDragPosX(-1), _lastDragPosY(-1), _screenChangeCount(0),
|
||||
_mouseCursorPaletteEnabled(false), _gfxTransactionError(kTransactionSuccess) {
|
||||
_queuedInputEvent.type = Common::EVENT_INVALID;
|
||||
_touchpadModeEnabled = !iOS7_isBigDevice();
|
||||
_touchpadModeEnabled = ConfMan.getBool("touchpad_mode");
|
||||
_mouseClickAndDragEnabled = ConfMan.getBool("clickanddrag_mode");
|
||||
|
||||
_chrootBasePath = iOS7_getDocumentsDir();
|
||||
ChRootFilesystemFactory *chFsFactory = new ChRootFilesystemFactory(_chrootBasePath);
|
||||
|
@ -300,7 +301,6 @@ void OSystem_iOS7::delayMillis(uint msecs) {
|
|||
usleep(msecs * 1000);
|
||||
}
|
||||
|
||||
|
||||
void OSystem_iOS7::setTimerCallback(TimerProc callback, int interval) {
|
||||
//printf("setTimerCallback()\n");
|
||||
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue