1 // Copyright (C) 2002-2008 Nikolaus Gebhardt
\r
2 // Copyright (C) 2008 Redshift Software, Inc.
\r
3 // Copyright (C) 2012-2015 Patryk Nadrowski
\r
4 // This file is part of the "Irrlicht Engine".
\r
5 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
7 #ifndef __C_IRR_DEVICE_IOS_H_INCLUDED__
\r
8 #define __C_IRR_DEVICE_IOS_H_INCLUDED__
\r
11 #ifdef _IRR_COMPILE_WITH_IOS_DEVICE_
\r
13 #include "CIrrDeviceStub.h"
\r
14 #include "IrrlichtDevice.h"
\r
19 class CIrrDeviceiOS : public CIrrDeviceStub
\r
22 CIrrDeviceiOS(const SIrrlichtCreationParameters& params);
\r
23 virtual ~CIrrDeviceiOS();
\r
25 bool run() override;
\r
26 void yield() override;
\r
27 void sleep(u32 timeMs, bool pauseTimer) override;
\r
29 void setWindowCaption(const wchar_t* text) override;
\r
31 bool isWindowActive() const override;
\r
32 bool isWindowFocused() const override;
\r
33 bool isWindowMinimized() const override;
\r
35 void closeDevice() override;
\r
37 void setResizable(bool resize = false) override;
\r
39 void minimizeWindow() override;
\r
40 void maximizeWindow() override;
\r
41 void restoreWindow() override;
\r
43 core::position2di getWindowPosition() override;
\r
45 bool activateAccelerometer(float updateInterval = 0.016666f) override;
\r
46 bool deactivateAccelerometer() override;
\r
47 bool isAccelerometerActive() override;
\r
48 bool isAccelerometerAvailable() override;
\r
49 bool activateGyroscope(float updateInterval = 0.016666f) override;
\r
50 bool deactivateGyroscope() override;
\r
51 bool isGyroscopeActive() override;
\r
52 bool isGyroscopeAvailable() override;
\r
53 bool activateDeviceMotion(float updateInterval = 0.016666f) override;
\r
54 bool deactivateDeviceMotion() override;
\r
55 bool isDeviceMotionActive() override;
\r
56 bool isDeviceMotionAvailable() override;
\r
58 E_DEVICE_TYPE getType() const override;
\r
61 void createWindow();
\r
62 void createViewAndDriver();
\r
71 #ifdef _IRR_COMPILE_WITH_IOS_BUILTIN_MAIN_
\r
72 extern void irrlicht_main();
\r