ALLEGRO_HAPTIC_CONSTANTS(3alleg5)

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

✨ 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