SDL_MouseWheelDirection(3type)

πŸ’– SDL_MouseWheelDirection πŸ’–

okay bestie, welcome to the SDL3 DATATYPES corner of the manual, where today's main character is SDL_MouseWheelDirection β€” the scroll direction types for the Scroll event ✨


🌸 NAME 🌸

SDL_MouseWheelDirection β€” the scroll direction types for the Scroll event, no cap πŸ–±οΈπŸ’«


✨ SYNOPSIS ✨

#include <SDL3/SDL_mouse.h>

typedef enum SDL_MouseWheelDirection
{
    SDL_MOUSEWHEEL_NORMAL,    /**< The scroll direction is normal */
    SDL_MOUSEWHEEL_FLIPPED    /**< The scroll direction is flipped / natural */
} SDL_MouseWheelDirection;

so basically it's an enum, it's giving very "two options and both of them are iconic" πŸŽ€

  • SDL_MOUSEWHEEL_NORMAL β€” the scroll direction is normal, the default vibe, the way you already expect it to go πŸ’…
  • SDL_MOUSEWHEEL_FLIPPED β€” the scroll direction is flipped / natural, i.e. the "natural scrolling" girlies know exactly what this is πŸ™ˆ

🌈 AVAILABILITY 🌈

this enum has been available since SDL 3.2.0, so if you're on anything older... babe, upgrade 😭✨


and that's the whole page, periodt πŸ’œ go forth and scroll responsibly πŸ¦‹

simple sign-off time: this lil datatype page comes to you from the Simple Directmedia Layer girlies, living in SDL 3.4.18 β€” SDL_MouseWheelDirection(3type), mwah πŸ’‹πŸ‘‘

πŸ“¦ where this page comes from