MCPcopy Create free account
hub / github.com/amov-lab/Prometheus / GetPressedKey

Method GetPressedKey

Modules/control/src/lib/KeyboardEvent.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 ROS_ERROR ("tcsetattr ~ICANON");
51}
52char KeyboardEvent::GetPressedKey()
53{
54 char key;
55 if(input_flag>-1)//if keyboard is pressed, then perform the callbacks
56 {
57 key = buff;
58 }else{
59 key = U_KEY_NONE;
60 }
61 return key;
62}
63void KeyboardEvent::RosWhileLoopRun()
64{
65 getch();

Callers 3

mainFunction · 0.80
mainloop2Function · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64