summaryrefslogtreecommitdiff
path: root/include/lib/touch.h
blob: bf9118453b0f8cdc8e446d9d3bc28384c2076fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include "global.h"
#include "types.h"

typedef struct TouchStateFlags {
    u16 touchX;
    u16 touchY;
    u16 touch;
    u16 flags;
} TouchStateFlags;

typedef struct TouchState {
    bool touch;
    s32 touchX;
    s32 touchY;
} TouchState;

#ifdef __cplusplus
extern "C" {
#endif
void WaitForTouchUpdate(u16 param1);
bool GetTouchStateFlags(TouchStateFlags *pState);
#ifdef __cplusplus
}
#endif