VgaGames4

VgaGames4 - input man-pages

[.. upper level ..]

# vg4->input->key_setgc()

Set a gamecontroller button- or axis-code for a key-entry.

SYNTAX
void vg4->input->key_setgc(int keyref, int gcid, int keycode)
FUNCTION PARAMETERS

keyref | key-entry reference-number
gcid | Gamecontroller-ID or 0 = all gamecontrollers
keycode | VG_INPUT_NOKEY or one of VG_INPUT_GCBUTTONS/VG_INPUT_GCAXES

DESCRIPTION
Set a gamecontroller button- or axis-code for a key-entry. After a key-entry was inserted with vg4->input->key_insert(), use this function to set it to a gamecontroller event.
SEE ALSO
vg4->input->key_insert() vg4->input->key_setkbd()