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

NAME

6       joystick_getnumaxes, joystick_getnumbuttons - query the capabilities of
7       a joystick
8

SYNOPSIS

10       #include <vgajoystick.h>
11
12       char joystick_getnumaxes(int joydev);
13       char joystick_getnumbuttons(int joydev);
14
15

DESCRIPTION

17       queries the number of axes (number of continuous ranges which the  joy‐
18       stick  allows to choose from) and buttons. The old version 0.* joystick
19       protocol reports 2 axes (x and y) and 4  buttons  although  the  actual
20       joystick will usually have less (often two) buttons.
21
22       svgalib  supports  up  to 127 axes and buttons, provided the underlying
23       device driver does it.
24
25

CAVEATS

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

SEE ALSO

33       svgalib(7), vgagl(7), libvga.config(5), joytest(6),  mjoytest(6),  joy‐
34       stick_init(3),      joystick_close(3),     joystick_update(3),     joy‐
35       stick_sethandler(3),        joystick_setdefaulthandler(3),         joy‐
36       stick_getaxis(3),   joystick_getbutton(3),   joystick_button1(3),  joy‐
37       stick_getb1(3), joystick_x(3), joystick_getx(3).
38
39

AUTHOR

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