VgaGames4

VgaGames4 - input man-pages

[.. upper level ..]

# vg4->input->gclist()

Get list of gamecontrollers.

SYNTAX
int vg4->input->gclist(struct VG_GCList *gclist)
FUNCTION PARAMETERS

gclist | For returning gamecontroller list

RETURN VALUE
Returns the number of found gamecontrollers
DESCRIPTION
Get list of gamecontrollers.
EXAMPLE

    struct VG_GCList gclist;
    int gcmax, igc;

    gcmax = vg4->input->gclist(&gclist);

    printf("%d gamecontrollers found\n", gcmax);
    for (igc = 0; igc < gcmax; igc++) {
      printf("ID %d: %s\n", gclist.gc[igc].id, gclist.gc[igc].name);
    }

SEE ALSO
struct VG_GCList