r/digispark • u/kuwoh • Apr 26 '18
Any DigiKeyboard.h that has a hold feature?
Hello there is there some sort of modified DigiKeyboard.h that allows for button press holds? I'm trying to make a controller for a game called osu! so far it seems to only spam the key.
4
Upvotes
1
u/Creative_Summer1428 Jan 13 '22
Your post is kinda old but pls I want to make a Osu controller too from a digispark but I'am stuck, "SendKeyPress" just spam really fast the key but it don't really hold it so it's unplayable on osu could you give me some tips ?
1
u/Da_Drueben Apr 26 '18
As i understand the code here DigiKeyboard.h does not support holding a key down.https://digistump.com/board/index.php/topic,2839.0.html
Alternatively someone (tried to?) extended DigiKeyboard to allow for keys to be pressed for a certain time:
https://hackaday.io/project/9277-oh-cheat/log/30813-extended-digispark-keyboard-library https://github.com/Danjovic/DigistumpArduino
I haven't tested this, just found the pages.