31void kinc_internal_surface_trigger_touch_start(
int index,
int x,
int y);
32void kinc_internal_surface_trigger_move(
int index,
int x,
int y);
33void kinc_internal_surface_trigger_touch_end(
int index,
int x,
int y);
35#ifdef KINC_IMPLEMENTATION_INPUT
36#define KINC_IMPLEMENTATION
39#ifdef KINC_IMPLEMENTATION
44static void (*surface_touch_start_callback)(
int ,
int ,
int ) = NULL;
45static void (*surface_move_callback)(
int ,
int ,
int ) = NULL;
46static void (*surface_touch_end_callback)(
int ,
int ,
int ) = NULL;
49 surface_touch_start_callback = value;
53 surface_move_callback = value;
57 surface_touch_end_callback = value;
60void kinc_internal_surface_trigger_touch_start(
int index,
int x,
int y) {
61 if (surface_touch_start_callback != NULL) {
62 surface_touch_start_callback(index, x, y);
66void kinc_internal_surface_trigger_move(
int index,
int x,
int y) {
67 if (surface_move_callback != NULL) {
68 surface_move_callback(index, x, y);
72void kinc_internal_surface_trigger_touch_end(
int index,
int x,
int y) {
73 if (surface_touch_end_callback != NULL) {
74 surface_touch_end_callback(index, x, y);
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KINC_FUNC void kinc_surface_set_touch_start_callback(void(*value)(int, int, int))
Sets the surface-touch-start-callback which is called when a finger-touch is detected.
KINC_FUNC void kinc_surface_set_move_callback(void(*value)(int, int, int))
Sets the surface-move-callback which is called when a finger is moving around.
KINC_FUNC void kinc_surface_set_touch_end_callback(void(*value)(int, int, int))
Sets the surface-touch-end-callback which is called when a finger disappears. This is usually not a m...