Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello, i am trying to capture more simultaneously pressed keys on pc that are retrieved from terminal via pc.getc() or pc.scanf(). But without any acceptable results. My target is to get A=keypressed1 and B=0 and C=0 each cycle if I hold down one key. Or A=keypressed1 and B=keypressed2 and C=0 each cycle if I hold down 2 keys.... Can anybody point me to right idea?
Here is code I am trying to use. Please notice I am C++ newbie and I'm not sure if my code is right.
And second using pc.scanf().