ALLEGRO_HAPTIC_CONSTANTS(3alleg5)
β¨ ALLEGRO_HAPTIC_CONSTANTS β¨
okay bestie, welcome to the Allegro reference manual (that's the 3alleg5 corner of the internet, iykyk) π this one's all about the haptic constants enum and honestly? it's giving "vibration lore" and i'm obsessed π¦
π NAME π
ALLEGRO_HAPTIC_CONSTANTS β the Allegro 5 API's lil collection of haptic flags, no cap π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
enum ALLEGRO_HAPTIC_CONSTANTS
β¨ DESCRIPTION β¨
so basically, this enum is where all the flags live that define haptic effects and capabilities π«Ά if a flag is set in whatever al_get_haptic_capabilities(3alleg5) hands back to you, that means the device supports that effect fr fr. and when you wanna actually play something? you set these flag values into an ALLEGRO_HAPTIC_EFFECT(3alleg5) struct so it knows what kind of haptic effect to go off with π₯
here's the full roster, every single one, no skipping, periodt π
ALLEGRO_HAPTIC_RUMBLEβ the simple vibration effects, the classic lil buzz π«ALLEGRO_HAPTIC_PERIODICβ periodic, wave-form effects, like a heartbeat but for your controller πALLEGRO_HAPTIC_CONSTANTβ constant effects, just steady vibes the whole time πALLEGRO_HAPTIC_SPRINGβ spring effects, boing boing πALLEGRO_HAPTIC_FRICTIONβ friction effects, that drag-y feeling π§ALLEGRO_HAPTIC_DAMPERβ damper effects, lowkey the opposite of a spring πALLEGRO_HAPTIC_INERTIAβ inertia effects, momentum core πALLEGRO_HAPTIC_RAMPβ ramp effects, it ramps, it's in the name πALLEGRO_HAPTIC_SQUAREβ square wave periodic effect, all sharp corners β¬ALLEGRO_HAPTIC_TRIANGLEβ triangle wave periodic effect, pointy but make it smooth πΊALLEGRO_HAPTIC_SINEβ sine wave periodic effect, the icon, the moment γ°οΈALLEGRO_HAPTIC_SAW_UPβ upwards saw wave periodic effect, going up bestie πALLEGRO_HAPTIC_SAW_DOWNβ downwards saw wave periodic effect, and now we descend πALLEGRO_HAPTIC_CUSTOMβ custom wave periodic effect, build-a-bear but for waveforms π§ΈALLEGRO_HAPTIC_GAINβ the haptic device supports gain setting πALLEGRO_HAPTIC_ANGLEβ the haptic device supports angle coordinates πALLEGRO_HAPTIC_RADIUSβ the haptic device supports radius coordinates π―ALLEGRO_HAPTIC_AZIMUTHβ the haptic device supports azimuth coordinates π§ALLEGRO_HAPTIC_AUTOCENTERβ (yes it's just listed like this, that's the whole entry, we love a mysterious queen) π
β SINCE β
5.1.8
π¨ [Unstable API]: Perhaps could be simplified due to limited support for all the exposed features across all of the platforms. Awaiting feedback from users. π¨
like, it's not fully cooked yet bestie, the platforms don't all agree on what they support, and the devs are waiting on y'all to tell them how it goes π
π SEE ALSO π
and that's the whole page, you ate it up π
this was the Allegro reference manual serving ALLEGRO_HAPTIC_CONSTANTS(3alleg5) β go forth and vibrate responsibly, ily, byeeee πβ¨π¦
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms