exkeys(3alleg4)

✨ exkeys ✨

okay bestie, gather round, because this is the exkeys page from the Allegro manual (that's exkeys(3alleg4) if you're being official about it) and it's literally a whole tour of keyboard input. no cap. πŸ’–


🌸 NAME 🌸

exkeys β€” the way to get input from the keyboard in different ways. Allegro game programming library. keyboard lore, fr fr. ⌨️✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

Example exkeys

πŸ¦‹ DESCRIPTION πŸ¦‹

so this program is a demo of how to access the keyboard, and it walks you through it step by step like a little tutorial arc. it's giving syllabus energy. πŸ“š

  • Part one shows you the basic use of readkey(). baby's first keypress. iconic.
  • Part two shows how to extract the ASCII value. the actual letter, not just "something happened".
  • Next come the scan codes. different vibe, same keyboard.
  • Test four detects modifier keys like alt or shift. πŸ‘‘ the shift key finally gets its moment.
  • Test five requires some focus to be passed. (yes, genuinely β€” that's what it says, so bring your focus.)
  • Final step shows how to use the global key array to read simultaneous key presses. mashing several keys at once? supported. main character energy. πŸ’…
  • Last method for detecting key presses is keyboard callbacks. this one gets demonstrated by installing a keyboard callback, which marks all pressed keys by drawing to a grid. grid go brrr. πŸ”₯

no skipping steps, bestie, they all eat. πŸ“


🌈 SEE ALSO 🌈

everything else you might want to peek at, all the siblings:


that's the whole page, you ate it up. this came from the Allegro manual, version 4.4.3, and the date on the original footer was just chillin' there next to exkeys(3alleg4). mwah. πŸ’–πŸŽ€πŸ¦‹