A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
#pragma once
#include "Host.hpp"
@class CMMotionManager;
namespace eshost {
class IOSDevice {
public:
IOSDevice();
~IOSDevice();
int capabilities() const;
bool start(bool acceleration, bool gyroscope, int intervalMs);
void stop();
bool poll(MotionState& out);
bool vibrate(int durationMs, int intensity);
bool keepScreenOn(bool enabled);
private:
mutable CMMotionManager* manager_ = nullptr;
double timestamp_ = 0;
};
}