libsdl-org / SDL_gesture

SDL2's gesture API split out into a single-header library.
zlib License
22 stars 2 forks source link

SDL_GetEventState is renamed to SDL_EventEnabled in SDL 3 #9

Open 1vanK opened 1 year ago

1vanK commented 1 year ago

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) == SDL_ENABLE) {
        ...
    }
}

static void GestureSendDollarRecord(GestureTouch *touch, Gesture_ID gestureId)
{
    if (SDL_GetEventState(GESTURE_DOLLARRECORD) == SDL_ENABLE) {
        ...
    }
}
1vanK commented 1 year ago

https://github.com/libsdl-org/SDL/blob/main/docs/README-migration.md