This is just to make sure the buttons are working. Wait 6ms to try and make it run at 60fps, this is probably wrong though. encode the button states into a byte each, with the first bit being used to sort which byte is which on the other end.ĭata = (0 << 0) + (startState << 1) + (selectState << 2) + (leftState << 3) + (downState << 4) + (rightState << 5) + ( upState << 6) ĭata = (1 << 0) + (yellowState << 1) + (redState << 2) + (greenState << 3) + (blueState << 4) Get the states for each of the buttons. We do not support multiple form-controls in a single input group and
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |