This is the Info version of the Allegro manual

By Shawn Hargreaves

Using Allegro
*************

int install_allegro(int system_id, int *errno_ptr, int (*atexit_ptr)());
     Initialises the Allegro library.

See also:

See allegro_init.

See allegro_exit.

See install_mouse.

int allegro_init();
     Initialises the Allegro library. This is the same thing as calling install_allegro(SYSTEM_AUTODETECT, &errno, atexit).

See also:

See install_allegro.

See allegro_exit.

See install_mouse.

void allegro_exit();
     Oh yea.

See also:

See install_allegro.

See allegro_init.

Unicode routines
****************

int ugetc(char *s);
     One function...

See also:

See ugetx.

See usetc.

See uwidth.

See ucwidth.

See uisok.

int ugetx(char **s);
     Another one.

See also:

See ugetc.

See usetc.

See uwidth.

See ucwidth.

See uisok.

int usetc(char *s, int c);
     Hi all.

See also:

See ugetc.

See ugetx.

See uwidth.

See ucwidth.

See uisok.

int uwidth(char *s);
     I love you.

See also:

See ugetc.

See ugetx.

See usetc.

See ucwidth.

See uisok.

int ucwidth(int c);
     How can't I get bored?

See also:

See ugetc.

See ugetx.

See usetc.

See uwidth.

See uisok.

int uisok(int c);
     Bye

See also:

See ugetc.

See ugetx.

See usetc.

See uwidth.

See ucwidth.

Mouse routines
**************

int install_mouse();
     one

See also:

See remove_mouse.

See poll_mouse.

See mouse_x.

See show_mouse.

See get_mouse_mickeys.

See position_mouse.

See set_mouse_range.

See set_mouse_speed.

void remove_mouse();
     two

See also:

See install_mouse.

See allegro_exit.

See allegro_init.

int poll_mouse();
     Wherever possible

See also:

See mouse_needs_poll.

See install_mouse.

See mouse_x.

See allegro_init.

int mouse_needs_poll();
     Returns TRUE

See also:

See poll_mouse.

See install_mouse.

See mouse_x.

extern volatile int mouse_x;

extern volatile int mouse_y;

exterm volatile int mouse_z;

extern volatile int mouse_b;

extern volatile int mouse_pos;
     Global variables.

See also:

See install_mouse.

See poll_mouse.

See mouse_needs_poll.

void show_mouse(BITMAP *bmp);
     Tells Allegro.

See also:

See install_mouse.

See set_mouse_sprite.

See scare_mouse.

See freeze_mouse_flag.

void scare_mouse();
     Helper for.

See also:

See unscare_mouse.

See scare_mouse_area.

See show_mouse.

void scare_mouse_area(int x, int y, int w, int h);
     Like scare_mouse(), but .

See also:

See unscare_mouse.

See scare_mouse_area.

See show_mouse.

void unscare_mouse();
     Undoes the .

See also:

See scare_mouse.

See scare_mouse_area.

extern volatile int freeze_mouse_flag;
     If this flag .

See also:

See show_mouse.

void position_mouse(int x, int y);
     Moves the.

See also:

See install_mouse.

See position_mouse_z.

See set_mouse_range.

See set_mouse_speed.

void position_mouse_z(int z);
     Sets the.

See also:

See install_mouse.

See position_mouse.

void set_mouse_range(int x1, int y1, int x2, int y2);
     Sets the .

See also:

See install_mouse.

See set_mouse_speed.

See position_mouse.

void set_mouse_speed(int xspeed, int yspeed);
     Sets the.

See also:

See install_mouse.

See set_mouse_range.

See position_mouse.

void set_mouse_sprite(BITMAP *sprite);
     You don't .

See also:

See install_mouse.

See show_mouse.

See set_mouse_sprite_focus.

void set_mouse_sprite_focus(int x, int y);
     The mouse .

See also:

See set_mouse_sprite.

void get_mouse_mickeys(int *mickeyx, int *mickeyy);
     Measures how .

See also:

See install_mouse.

extern void (*mouse_callback)(int flags);
     Called by the .

See also:

See install_mouse.

Conclusion
**********

All good things must come to an end.

Index
*****