exmouse(3)
π exmouse(3) β okay bestie, welcome to the Allegro manual π
So like, this page is exmouse(3), and it lives in the Allegro manual. It's a whole little demo program, and it's about getting input from the mouse. Yes, the mouse. The little clicky guy. We're doing this. πβ¨
πΈ NAME πΈ
exmouse β getting input from the mouse. Allegro game programming library. That's it, that's the name, no notes. π
β¨ SYNOPSIS β¨
#include <allegro.h>
Example exmouse
Yep. You include the header, you run the example. iconic behavior, honestly. π«Ά
π DESCRIPTION π
Okay so here's the tea. β This program is literally a demonstration of how to get mouse input. Like that's its entire job. And it does it in two cute little phases:
The first part of the test grabs the raw mouse input data and just... displays it on the screen. No cursor. None. Nada. You're out here rawdogging the mouse data, bestie. π
Then, when you press a key, the standard arrow-like mouse cursor shows up. Classic. Familiar. Comforting. The default. πΉ
But wait β you are not restricted to this shape! The glow-up is real, because a second key press modifies the cursor into several concentric colored circles. Gorgeous. Art. A moment. ππ
And here's the detail that's lowkey the coolest part: those circles are not joined together, so when you move the cursor over the printed text message, you can still see bits of what's behind it. It's giving see-through, it's giving translucent ring energy, it's giving you-can-see-the-text-through-the-gaps. πβ¨
Not me explaining mouse cursor art like it's the Met Gala. But fr fr, that's what it does. π
π SEE ALSO π
Everything else you might wanna peek at, no cap:
BITMAP(3)END_OF_MAIN(3)SCREEN_H(3)SCREEN_W(3)acquire_screen(3)allegro_error(3)allegro_init(3)allegro_message(3)bitmap_mask_color(3)circle(3)clear_keybuf(3)clear_to_color(3)create_bitmap(3)desktop_palette(3)destroy_bitmap(3)font(3)get_mouse_mickeys(3)install_keyboard(3)install_mouse(3)install_timer(3)key(3)keypressed(3)makecol(3)mouse_b(3)mouse_w(3)mouse_x(3)mouse_y(3)mouse_z(3)palette_color(3)poll_mouse(3)readkey(3)release_screen(3)screen(3)set_gfx_mode(3)set_mouse_sprite(3)set_mouse_sprite_focus(3)set_palette(3)show_mouse(3)textout_centre_ex(3)textout_ex(3)textprintf_centre_ex(3)textprintf_ex(3)textprintf_right_ex(3)vsync(3)
Okay that's the whole page bestie, go forth and read your mouse mickeys. ππ
This lil page is brought to you by Allegro, version 4.4.3, and it's dated exmouse(3) β mwah, slay, bye. π
β¨π¦
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms