1install_int(3)                  Allegro manual                  install_int(3)
2
3
4

NAME

6       install_int  -  Installs a user timer handler. Allegro game programming
7       library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int install_int(void (*proc)(), int speed);
14

DESCRIPTION

16       Installs a user timer handler, with the speed given as  the  number  of
17       milliseconds    between    ticks.   This   is   the   same   thing   as
18       install_int_ex(proc, MSEC_TO_TIMER(speed)). If you  call  this  routine
19       without  having  first installed the timer module, install_timer() will
20       be called automatically. Calling again this routine with the same timer
21       handler as parameter allows you to adjust its speed.
22

RETURN VALUE

24       Returns  zero  on  success, or a negative number if there is no room to
25       add a new user timer.
26
27

SEE ALSO

29       install_timer(3),           remove_int(3),           install_int_ex(3),
30       install_param_int(3), exscn3d(3), exswitch(3), extimer(3), exzbuf(3)
31
32
33
34Allegro                          version 4.2.2                  install_int(3)
Impressum