![]() |
Wise&mystical
1.0
Project about Europe
|
Go to the source code of this file.
Classes | |
struct | Vector2 |
struct | GestureEvent |
Macros | |
#define | PI 3.14159265358979323846 |
rgestures - Gestures system, gestures processing based on input events (touch/mouse) More... | |
#define | MAX_TOUCH_POINTS 8 |
Typedefs | |
typedef enum bool | bool |
typedef struct Vector2 | Vector2 |
Enumerations | |
enum | bool { false , true , false , true , false , true , false , true } |
enum | TouchAction { TOUCH_ACTION_UP = 0 , TOUCH_ACTION_DOWN , TOUCH_ACTION_MOVE , TOUCH_ACTION_CANCEL } |
Functions | |
void | ProcessGestureEvent (GestureEvent event) |
void | UpdateGestures (void) |
#define MAX_TOUCH_POINTS 8 |
Definition at line 57 of file rgestures.h.
#define PI 3.14159265358979323846 |
rgestures - Gestures system, gestures processing based on input events (touch/mouse)
NOTE: Memory footprint of this library is aproximately 128 bytes (global variables)
CONFIGURATION:
#define GESTURES_IMPLEMENTATION Generates the implementation of the library into the included file. If not defined, the library is in header only mode and can be included in other headers or source files without problems. But only ONE file should hold the implementation.
#define GESTURES_STANDALONE If defined, the library can be used as standalone to process gesture events with no external dependencies.
CONTRIBUTORS: Marc Palau: Initial implementation (2014) Albert Martos: Complete redesign and testing (2015) Ian Eito: Complete redesign and testing (2015) Ramon Santamaria: Supervision, review, update and maintenance
LICENSE: zlib/libpng
Copyright (c) 2014-2022 Ramon Santamaria (@raysan5)
This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
Definition at line 50 of file rgestures.h.
enum bool |
Enumerator | |
---|---|
false | |
true | |
false | |
true | |
false | |
true | |
false | |
true |
Definition at line 68 of file rgestures.h.
enum TouchAction |
Enumerator | |
---|---|
TOUCH_ACTION_UP | |
TOUCH_ACTION_DOWN | |
TOUCH_ACTION_MOVE | |
TOUCH_ACTION_CANCEL |
Definition at line 97 of file rgestures.h.
void ProcessGestureEvent | ( | GestureEvent | event | ) |
void UpdateGestures | ( | void | ) |