al_set_mouse_axis(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_set_mouse_axis β€” it's giving Allegro 5 API, bestie πŸ’–


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

bool al_set_mouse_axis(int which, int value)

πŸŽ€ DESCRIPTION πŸŽ€

okay so basically you're setting the given mouse axis to the given value. that's the whole vibe. you point at an axis, you hand it a value, boom. ✨

🚨 IMPORTANT SIS: the axis number must not be 0 or 1. those two are the X and Y axes, and they are simply not invited to this party πŸ™…β€β™€οΈ if you wanna move the X and Y, go use al_set_mouse_xy(3alleg5) instead, that's literally what it's for. iykyk πŸ’…

and then it returns true on success, false on failure. slay when it works, sad when it doesn't. 😭


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, no cap 🫢 this lil cutie came from the Allegro reference manual, and it's the al_set_mouse_axis(3alleg5) page, periodt πŸ‘‘πŸ’– go forth and set those axes bestie, you ate 🌟

πŸ“¦ where this page comes from