I am using a keyboard encoder and dance mat to create an interactive video.
I have coded it to play different movies depending on what key is pressed on the mat. However i need to trigger videos to play not only if one key is pressed but if two keys are pressed together on the mat.(or at least pressed in close proximity 20-80ms)
I am having difficulties figuring out the coding for this, i figure i have to find a way to time lenght between presses if they are within a certain amount append the key codes received to each other then send the new information on or if no second key is pressed send the single key code on.
any help, advice, info would be extremely extremely appreciated!!!