joystick_update(3) query joysticks for status changes


#include <vgajoystick.h>

int joystick_update(void);


queries all currently opened joysticks for position changes and calls the appropriate event handlers.

A non-zero value is returned if and only if any joystick reported a position change. In more detail the logical and of the return value and (1 << joydev) is non-zero if this joystick status changed.


This function is only available in ELF versions of svgalib. Due to backwards compatibility issues it cannot be used with shared a.out libs.


The svgalib joystick handler was mostly done by Daniel Engstr\"om <[email protected]>. Multiple joystick, VC switching support and code to glue it into svgalib by Michael Weller <[email protected]>. Part of the code is based on code from C. Smith and Vojtech Pavlik.