|
16 | 16 | #include "../../video/ohos/SDL_ohoskeyboard.h"
|
17 | 17 |
|
18 | 18 | static OHNativeWindow *g_ohosNativeWindow;
|
19 |
| -SDL_Mutex *g_ohosPageMutex = NULL; |
| 19 | +static SDL_Mutex *g_ohosPageMutex = NULL; |
20 | 20 | static OH_NativeXComponent_Callback callback;
|
21 | 21 | static OH_NativeXComponent_MouseEvent_Callback mouseCallback;
|
22 | 22 | static int x, y, wid, hei;
|
@@ -187,6 +187,11 @@ static napi_value sdlCallbackInit(napi_env env, napi_callback_info info)
|
187 | 187 | return result;
|
188 | 188 | }
|
189 | 189 |
|
| 190 | +static napi_value sdlLaunchMain(napi_env env, napi_callback_info info) |
| 191 | +{ |
| 192 | + |
| 193 | +} |
| 194 | + |
190 | 195 | static void OnSurfaceCreatedCB(OH_NativeXComponent *component, void *window)
|
191 | 196 | {
|
192 | 197 | g_ohosNativeWindow = (OHNativeWindow *)window;
|
@@ -265,7 +270,8 @@ static napi_value SDL_OHOS_NAPI_Init(napi_env env, napi_value exports)
|
265 | 270 | {
|
266 | 271 | napi_property_descriptor desc[] = {
|
267 | 272 | { "minus", NULL, minus, NULL, NULL, NULL, napi_default, NULL },
|
268 |
| - { "sdlCallbackInit", NULL, sdlCallbackInit, NULL, NULL, NULL, napi_default, NULL } |
| 273 | + { "sdlCallbackInit", NULL, sdlCallbackInit, NULL, NULL, NULL, napi_default, NULL }, |
| 274 | + { "sdlLaunchMain", NULL, sdlLaunchMain, NULL, NULL, NULL, napi_default, NULL } |
269 | 275 | };
|
270 | 276 | napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
|
271 | 277 |
|
|
0 commit comments