exmouse(3alleg4)
π exmouse β the manual page, but make it a group chat π
okay so bestie, this is exmouse from the Allegro manual, and it's part of the Allegro game programming library situation. it's an example program. it's giving "hello world but for your mouse." πβ¨
β¨ SYNOPSIS β¨
#include <allegro.h>
Example exmouse
like. that's it. that's the whole vibe. #include <allegro.h> and then you've got Example exmouse. slay. π
πΈ DESCRIPTION πΈ
okay so real talk, this program is a demonstration of how to get mouse input. that's the whole assignment. it shows you how to read what your mouse is doing. periodt. π±οΈπ
the first part of the test retrieves the raw mouse input data and displays it on the screen without using any mouse cursor. so like, no cursor. none. you're just watching numbers do their little dance. iconic honestly.
then, when you press a key, the standard arrow-like mouse cursor appears. πΉβ¨ and here's the thing bestie β you are not restricted to this shape. not even a little bit. a second key press modifies the cursor to be several concentric colored circles π―π which is lowkey art tbh.
and because those circles are not joined together, you can still see bits of what's behind them when you move the cursor over the printed text message. so it's like a little peekaboo cursor. transparency but make it handmade. π«Ά
π¦ SEE ALSO π¦
the whole friend group, alphabetically, no cap:
BITMAP(3alleg4)END_OF_MAIN(3alleg4)SCREEN_H(3alleg4)SCREEN_W(3alleg4)acquire_screen(3alleg4)allegro_error(3alleg4)allegro_init(3alleg4)allegro_message(3alleg4)bitmap_mask_color(3alleg4)circle(3alleg4)clear_keybuf(3alleg4)clear_to_color(3alleg4)create_bitmap(3alleg4)desktop_palette(3alleg4)destroy_bitmap(3alleg4)font(3alleg4)get_mouse_mickeys(3alleg4)install_keyboard(3alleg4)install_mouse(3alleg4)install_timer(3alleg4)key(3alleg4)keypressed(3alleg4)makecol(3alleg4)mouse_b(3alleg4)mouse_w(3alleg4)mouse_x(3alleg4)mouse_y(3alleg4)mouse_z(3alleg4)palette_color(3alleg4)poll_mouse(3alleg4)readkey(3alleg4)release_screen(3alleg4)screen(3alleg4)set_gfx_mode(3alleg4)set_mouse_sprite(3alleg4)set_mouse_sprite_focus(3alleg4)set_palette(3alleg4)show_mouse(3alleg4)textout_centre_ex(3alleg4)textout_ex(3alleg4)textprintf_centre_ex(3alleg4)textprintf_ex(3alleg4)textprintf_right_ex(3alleg4)vsync(3alleg4)
π reminder bestie: this is an example program, so go read the actual functions before you go wild. the manpage said it, not me. π
and that's the whole page, mwah π this was Allegro version 4.4.3 of exmouse(3alleg4), dropping straight from the Allegro manual. go forth and track those mickeys, queen. ππ¦π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms