1joystick_update(3)            Svgalib User Manual           joystick_update(3)
2
3
4

NAME

6       joystick_update - query joysticks for status changes
7

SYNOPSIS

9       #include <vgajoystick.h>
10
11       int joystick_update(void);
12
13

DESCRIPTION

15       queries  all  currently opened joysticks for position changes and calls
16       the appropriate event handlers.
17
18       A non-zero value is returned if and only if  any  joystick  reported  a
19       position change. In more detail the logical and of the return value and
20       (1 << joydev) is non-zero if this joystick status changed.
21
22

CAVEATS

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

SEE ALSO

30       svgalib(7), vgagl(7), libvga.config(5), joytest(6),  mjoytest(6),  joy‐
31       stick_init(3), joystick_close(3), joystick_sethandler(3), joystick_set‐
32       defaulthandler(3),  joystick_getnumaxes(3),  joystick_getnumbuttons(3),
33       joystick_getaxis(3),  joystick_getbutton(3),  joystick_button1(3), joy‐
34       stick_getb1(3), joystick_x(3), joystick_getx(3).
35
36

AUTHOR

38       The svgalib joystick handler  was  mostly  done  by  Daniel  Engstr\"om
39       <daniel.engstrom@riksnett.no>.  Multiple joystick, VC switching support
40       and code to  glue  it  into  svgalib  by  Michael  Weller  <eowmob@exp-
41       math.uni-essen.de>. Part of the code is based on code from C. Smith and
42       Vojtech Pavlik.
43
44
45
46Svgalib 1.3.0                    14 April 1998              joystick_update(3)
Impressum