LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
Loading...
Searching...
No Matches
lg_touchscreen.h
1/*
2 * LibGame - Copyright (C) Emmanuel Thomas-Maurin 2011-2026
3 * All rights reserved
4 */
5
6#ifndef LG_TOUCHSCREEN_H
7#define LG_TOUCHSCREEN_H
8
9typedef enum {
10 LG_FINGER_DOWN_NO_LOC = 0,
11 LG_FINGER_DOWN_LEFT = 1,
12 LG_FINGER_DOWN_H_CENTER = 2,
13 LG_FINGER_DOWN_RIGHT = 4,
14 LG_FINGER_DOWN_BOTTOM = 8,
15 LG_FINGER_DOWN_V_CENTER = 16,
16 LG_FINGER_DOWN_TOP = 32
17} lg_finger_down_loc;
18
19void lg_get_motion_and_shot_from_touchscreen(int, int, int *, int *, int, zboolean *);
20
21void lg_wait_for_finger_down(float *, float *);
22
23void lg_wait_for_finger_motion(float *, float *);
24
25zboolean lg_get_finger_position(zboolean, float *, float *);
26
27zboolean lg_get_finger_state_and_pos(float *, float *);
28
29zboolean lg_get_finger_motion(float *, float *);
30
31lg_finger_down_loc lg_get_finger_down_loc();
32
33lg_finger_down_loc lg_finger_loc_from_pos(float, float);
34
36
38
39#endif /* LG_TOUCHSCREEN_H */
lg_finger_down_loc lg_finger_loc_from_pos(float x, float y)
Definition lg_touchscreen.c:216
void lg_wait_for_finger_down(float *x, float *y)
Definition lg_touchscreen.c:72
unsigned long lg_return_finger_down_code_push_back_event()
Definition lg_touchscreen.c:242
lg_finger_down_loc lg_get_finger_down_loc()
Definition lg_touchscreen.c:202
zboolean lg_get_finger_state_and_pos(float *x, float *y)
Definition lg_touchscreen.c:144
void lg_flush_touch_events()
Definition lg_touchscreen.c:258
zboolean lg_get_finger_position(zboolean down_flag, float *x, float *y)
Definition lg_touchscreen.c:121
void lg_get_motion_and_shot_from_touchscreen(int sprite_x, int sprite_y, int *motion_x, int *motion_y, int zone_side, zboolean *shot)
Definition lg_touchscreen.c:27
zboolean lg_get_finger_motion(float *dx, float *dy)
Definition lg_touchscreen.c:181
void lg_wait_for_finger_motion(float *dx, float *dy)
Definition lg_touchscreen.c:97