Skip to content

Commit 048a59b

Browse files
committed
Harmony port: fix
1 parent e919066 commit 048a59b

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

src/core/ohos/SDL_ohos.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,4 @@ typedef struct SDL_VideoData {
1818
int isPausing;
1919
} SDL_VideoData;
2020

21-
typedef struct SDL_OHOSTouchEvent {
22-
int64_t deviceId;
23-
int32_t fingerId;
24-
int type;
25-
float x;
26-
float y;
27-
float p;
28-
float area;
29-
int64_t timestamp;
30-
} SDL_OHOSTouchEvent;
31-
3221
#endif

src/video/ohos/SDL_ohostouch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "../../core/ohos/SDL_ohos.h"
1+
#include "SDL_ohostouch.h"
22
#include "SDL3/SDL_events.h"
33
#include "SDL3/SDL_touch.h"
44
#include "events/SDL_events_c.h"

src/video/ohos/SDL_ohostouch.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#ifndef SDL_OHOSTOUCH_H
22
#define SDL_OHOSTOUCH_H
33

4-
#include "SDL_internal.h"
5-
#include "../../core/ohos/SDL_ohos.h"
4+
typedef struct SDL_OHOSTouchEvent {
5+
int64_t deviceId;
6+
int32_t fingerId;
7+
int type;
8+
float x;
9+
float y;
10+
float p;
11+
float area;
12+
int64_t timestamp;
13+
} SDL_OHOSTouchEvent;
614

715
void OHOS_OnTouch(SDL_OHOSTouchEvent event);
816

0 commit comments

Comments
 (0)