Skip to content

Mindstorms hub and keyboard key detection #892

Answered by dlech
jeagh asked this question in Q&A
Discussion options

You must be logged in to vote

The current method of using stdin doesn't actually detect key events, but rather the characters that would appear in a terminal as a result of typing. So if you keyboard is configured to automatically repeat characters when it is held down, you could detect the release of a key by the lack of repeating characters.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeagh
Comment options

Answer selected by jeagh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants