#include <global_add.h>
Data Fields | |
int | state [11] |
int | keys [11] |
int | joybuton [7] |
int | use_joystick |
int | key_waited |
int | buton_waited |
int | wait_input |
Struct to simply know human player input, without having to know if it's joy, key or anything
use : after called input_reader just test the state array that contain booleans call input->state[x]!=0 to know in witch state is the controller
state[0] = up ; state[1] = down ; state[2] = left ; state[3]= right ;
state[4] = a ; state[5] = b ; state[6] = c ;
state[7] = x ; state[8] = y ; state[9] = z ;
state[10] = start