save state
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
using namespace aidl::com::omixlab::mosis;
|
||||
using namespace aidl::android::hardware;
|
||||
|
||||
std::shared_ptr<class IMosisService> g_service;
|
||||
std::shared_ptr<IMosisService> g_service;
|
||||
std::shared_ptr<class ServiceContext> g_context;
|
||||
|
||||
class TextureBlitter
|
||||
@@ -145,6 +145,14 @@ extern "C" void SetNativeCallbacks(const NativeCallbacks& ptr)
|
||||
g_callbacks = ptr;
|
||||
}
|
||||
|
||||
extern "C" void SendTouchMove(float x, float y)
|
||||
{
|
||||
if (g_service)
|
||||
{
|
||||
g_service->onTouchMove(x, y);
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" UnityRenderingEvent InitGLAD()
|
||||
{
|
||||
return [](int eventId){
|
||||
|
||||
Reference in New Issue
Block a user