Harmony port: fix

This commit is contained in:
Jack253-png 2025-06-01 18:24:49 +08:00
parent e91906683c
commit 048a59b21b
No known key found for this signature in database
GPG key ID: 51EA61206B02D886
3 changed files with 11 additions and 14 deletions

View file

@ -18,15 +18,4 @@ typedef struct SDL_VideoData {
int isPausing;
} SDL_VideoData;
typedef struct SDL_OHOSTouchEvent {
int64_t deviceId;
int32_t fingerId;
int type;
float x;
float y;
float p;
float area;
int64_t timestamp;
} SDL_OHOSTouchEvent;
#endif

View file

@ -1,4 +1,4 @@
#include "../../core/ohos/SDL_ohos.h"
#include "SDL_ohostouch.h"
#include "SDL3/SDL_events.h"
#include "SDL3/SDL_touch.h"
#include "events/SDL_events_c.h"

View file

@ -1,8 +1,16 @@
#ifndef SDL_OHOSTOUCH_H
#define SDL_OHOSTOUCH_H
#include "SDL_internal.h"
#include "../../core/ohos/SDL_ohos.h"
typedef struct SDL_OHOSTouchEvent {
int64_t deviceId;
int32_t fingerId;
int type;
float x;
float y;
float p;
float area;
int64_t timestamp;
} SDL_OHOSTouchEvent;
void OHOS_OnTouch(SDL_OHOSTouchEvent event);