mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 23:20:58 +00:00
Harmony port: fix
This commit is contained in:
parent
e91906683c
commit
048a59b21b
3 changed files with 11 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue