joytrg

From ArchaicPixels: HuC and PCEAS Documentation

Jump to: navigation, search

joytrg(char num);

     Return informations about newly pressed buttons
     and directions of joypad number 'num'.
     But beware of this function, these informations
     are refreshed every frame, so if your game loop
     is not fast enough you could miss some keypresses.
     In such a case use the joy_events() functions, they
     do keep trace of all the keypresses.
Personal tools