Skip to content
Discussion options

You must be logged in to vote

It isn't possible to do this using just the terminal in Pybricks Code using this method. It does not know anything about when a key was pressed or when a key was released. It only knows that you typed a letter in the terminal.

You would need to write a special program on your computer that can detect the key press separately from the key release. Then use that to send one letter when a key is pressed and a different letter when a key is released to get the two different events.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@oscarlangloisogmgo-afk
Comment options

@Debenben
Comment options

@oscarlangloisogmgo-afk
Comment options

@Debenben
Comment options

@oscarlangloisogmgo-afk
Comment options

Answer selected by oscarlangloisogmgo-afk
Comment options

You must be logged in to vote
2 replies
@oscarlangloisogmgo-afk
Comment options

@Debenben
Comment options

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