Skip to content

Commit f6147e0

Browse files
authored
Update SDL_ohos.c
1 parent 0f4c8f5 commit f6147e0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/core/ohos/SDL_ohos.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,6 @@ static void OnDispatchTouchEventCB(OH_NativeXComponent *component, void *window)
421421
}
422422
// TODO
423423
static void onNativeMouse(OH_NativeXComponent *component, void *window) {}
424-
static void OnHoverEvent(OH_NativeXComponent *component, bool isHover) {}
425-
static void OnFocusEvent(OH_NativeXComponent *component, void *window) {}
426-
static void OnBlurEvent(OH_NativeXComponent *component, void *window) {}
427424

428425
static napi_value SDL_OHOS_NAPI_Init(napi_env env, napi_value exports)
429426
{
@@ -451,12 +448,9 @@ static napi_value SDL_OHOS_NAPI_Init(napi_env env, napi_value exports)
451448

452449
mouseCallback.DispatchMouseEvent = OnDispatchTouchEventCB;
453450
mouseCallback.DispatchMouseEvent = onNativeMouse;
454-
mouseCallback.DispatchHoverEvent = OnHoverEvent;
455-
OH_NativeXComponent_RegisterMouseEventCallback(nativeXComponent, &mouseCallback);
451+
OH_NativeXComponent_RegisterMouseEventCallback(nativeXComponent, &mouseCallback);
456452

457453
OH_NativeXComponent_RegisterKeyEventCallback(nativeXComponent, onKeyEvent);
458-
OH_NativeXComponent_RegisterFocusEventCallback(nativeXComponent, OnFocusEvent);
459-
OH_NativeXComponent_RegisterBlurEventCallback(nativeXComponent, OnBlurEvent);
460454

461455
g_ohosPageMutex = SDL_CreateMutex();
462456

0 commit comments

Comments
 (0)