0

How do I modify the Gemma pinball project to hold down keys
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

How do I modify the Gemma pinball project to hold down keys

by craftersshaft on Mon Jul 16, 2018 5:32 pm

Planning on making a cheap mini pinball controller to hook up to my PC, and saw that the project for iPad doesn't hold down the keys. I don't really know anything about modifying this type of code, so any help would be appreciated.

craftersshaft
 
Posts: 1
Joined: Thu Feb 15, 2018 4:11 pm

Re: How do I modify the Gemma pinball project to hold down k

by adafruit_support_mike on Tue Jul 17, 2018 3:36 pm

The general idea is to put a delay between the .press() and .release() statements for any given key. USB treats those as different signals, so it will assume a key is held down until it gets a signal saying the key has been released.

adafruit_support_mike
 
Posts: 53119
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.