2020-01-03 20:05:16 +01:00
|
|
|
// Copyright (C) 2002-2008 Nikolaus Gebhardt
|
|
|
|
// Copyright (C) 2008 Redshift Software, Inc.
|
|
|
|
// Copyright (C) 2012-2015 Patryk Nadrowski
|
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
|
|
|
#ifndef __C_IRR_DEVICE_IOS_H_INCLUDED__
|
|
|
|
#define __C_IRR_DEVICE_IOS_H_INCLUDED__
|
|
|
|
|
|
|
|
#include "IrrCompileConfig.h"
|
|
|
|
|
|
|
|
#ifdef _IRR_COMPILE_WITH_IOS_DEVICE_
|
|
|
|
|
|
|
|
#include "CIrrDeviceStub.h"
|
|
|
|
#include "IrrlichtDevice.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
|
2023-01-02 21:21:53 +01:00
|
|
|
class CIrrDeviceiOS : public CIrrDeviceStub
|
2020-01-03 20:05:16 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
CIrrDeviceiOS(const SIrrlichtCreationParameters& params);
|
|
|
|
virtual ~CIrrDeviceiOS();
|
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
bool run() override;
|
|
|
|
void yield() override;
|
|
|
|
void sleep(u32 timeMs, bool pauseTimer) override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
void setWindowCaption(const wchar_t* text) override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
bool isWindowActive() const override;
|
|
|
|
bool isWindowFocused() const override;
|
|
|
|
bool isWindowMinimized() const override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
void closeDevice() override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
void setResizable(bool resize = false) override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
void minimizeWindow() override;
|
|
|
|
void maximizeWindow() override;
|
|
|
|
void restoreWindow() override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
core::position2di getWindowPosition() override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
bool activateAccelerometer(float updateInterval = 0.016666f) override;
|
|
|
|
bool deactivateAccelerometer() override;
|
|
|
|
bool isAccelerometerActive() override;
|
|
|
|
bool isAccelerometerAvailable() override;
|
|
|
|
bool activateGyroscope(float updateInterval = 0.016666f) override;
|
|
|
|
bool deactivateGyroscope() override;
|
|
|
|
bool isGyroscopeActive() override;
|
|
|
|
bool isGyroscopeAvailable() override;
|
|
|
|
bool activateDeviceMotion(float updateInterval = 0.016666f) override;
|
|
|
|
bool deactivateDeviceMotion() override;
|
|
|
|
bool isDeviceMotionActive() override;
|
|
|
|
bool isDeviceMotionAvailable() override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
2022-10-09 20:57:28 +02:00
|
|
|
E_DEVICE_TYPE getType() const override;
|
2020-01-03 20:05:16 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void createWindow();
|
|
|
|
void createViewAndDriver();
|
|
|
|
|
|
|
|
void* DataStorage;
|
|
|
|
|
|
|
|
bool Close;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef _IRR_COMPILE_WITH_IOS_BUILTIN_MAIN_
|
|
|
|
extern void irrlicht_main();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|