Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
rgestures.h File Reference
+ This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ MAX_TOUCH_POINTS

#define MAX_TOUCH_POINTS   8

Definition at line 57 of file rgestures.h.

◆ PI

#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:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Definition at line 50 of file rgestures.h.

Typedef Documentation

◆ bool

typedef enum bool bool

◆ Vector2

typedef struct Vector2 Vector2

Enumeration Type Documentation

◆ bool

enum bool
Enumerator
false 
true 
false 
true 
false 
true 
false 
true 

Definition at line 68 of file rgestures.h.

◆ TouchAction

Enumerator
TOUCH_ACTION_UP 
TOUCH_ACTION_DOWN 
TOUCH_ACTION_MOVE 
TOUCH_ACTION_CANCEL 

Definition at line 97 of file rgestures.h.

Function Documentation

◆ ProcessGestureEvent()

void ProcessGestureEvent ( GestureEvent  event)

◆ UpdateGestures()

void UpdateGestures ( void  )
+ Here is the caller graph for this function: