poll_scroll(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ poll_scroll β€” bestie's guide to checking on your scroll ✨

okay so this is a page from the Allegro manual, and it's all about poll_scroll, a lil function that checks whether your scroll request actually went through when you're doing triple buffering. it's giving "are we there yet" but for hardware. let's get into it πŸ’…


🌸 NAME 🌸

poll_scroll β€” checks the status of a scroll request with triple buffering. it lives in the Allegro game programming library, bestie πŸŽ€


🌈 SYNOPSIS 🌈

#include <allegro.h>

int poll_scroll();

πŸ’– DESCRIPTION πŸ’–

so, this function is for triple buffering. what it does is check the status of a hardware scroll that you already kicked off earlier with the request_scroll() routine. like, you asked for the scroll, and now poll_scroll() is the friend who goes "hey… did that happen yet? πŸ‘€"


πŸ¦‹ RETURN VALUE πŸ¦‹

  • non-zero β†’ it's still waiting for the scroll to take place. patience, queen 🧘
  • zero β†’ the requested scroll has already happened. slay, it's done ✨

πŸ‘‘ SEE ALSO πŸ‘‘


ngl this one is short and sweet, but that's the whole vibe β€” it's a status checker, not a whole saga πŸ’€

anyway, that's the page! this was pulled from the Allegro manual, version 4.4.3 β€” shoutout to the Allegro girlies for keeping it iconic since forever 🫢 no cap, go check your scrolls, bestie πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from