I have the answer 
getButtons return a byte
the last 4 bites give the buttons state
bit 0 for left down
bit 1 for left up
bit 2 for right ip
bit 3 for right down
you get any combination when several buttons are pressed at the same time
enjoy !

getButtons return a byte
the last 4 bites give the buttons state
bit 0 for left down
bit 1 for left up
bit 2 for right ip
bit 3 for right down
you get any combination when several buttons are pressed at the same time
enjoy !