install_int(3alleg4)

install_int3alleg4

Installs a user timer handler. allegro game programming library.

Usage

#include <allegro.h>

int install_int(void (*proc)(), int speed);

Overview

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

Return value

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.