thefox wrote:This calls pad_poll/pad_state once during the initialization of the program, not what you want. (I can't even remember if this is valid in C, or only C++.)-Basti- wrote:Code: Select all
static unsigned char input = pad_poll(0); static unsigned char lf_input = pad_state(0);
Sorry my bad, I made a mistake when summarizing my problem. input and lf_input are written each frame through my input-routine.
I fooled around a bit more with my code and found out, that using function pad_trigger instead of pad_poll solves my problem without comparing any input of the last frame.
Could somebody explain the difference between function pad_trigger and pad_poll?