SDL_gesture
                                
                                
                                
                                    SDL_gesture copied to clipboard
                            
                            
                            
                        SDL2's gesture API split out into a single-header library.
test/testgesture.c is not compatible with SDL3, even when defining `SDL_ENABLE_OLD_NAMES`.
use [libsdl-org/setup-sdl](https://github.com/libsdl-org/setup-sdl) to test this library on SDL2 and SDL3
static void GestureSendMulti(GestureTouch *touch, float dTheta, float dDist) { if (SDL_GetEventState(GESTURE_MULTIGESTURE) == SDL_ENABLE) { ... } } ``` static void GestureSendDollar(GestureTouch *touch, Gesture_ID gestureId, float error) { if (SDL_GetEventState(GESTURE_DOLLARGESTURE) ==...
``` typedef struct { SDL_FPoint path[GESTURE_DOLLARNPOINTS]; unsigned long hash; } GestureDollarTemplate; ``` `unsigned long` have size 32 (on Win32, Win64, Unix32) or 64 (on Unix64) In same time hash used...
So right now, you would `#include "SDL_gesture.h"`, and on SDL3, where there is no such file, it will choose the standalone header from this project. If you are using SDL2,...