I just finished a working version in C of the Keyboard Api (thank you @dave for the acceleratedChange formula).
However I would like to know if it is OK to post the code here. The license explicitly forbid to create derivative work of the API without a written permission:
PLAYDATE SDK LICENSE 1.0
[...]
You will not:
- Modify, adapt, alter, translate, or incorporate into or with other software or create a derivative work of any part of the SDK, except as permitted herein, without express written permission from Panic;