| 50 | ROS_ERROR ("tcsetattr ~ICANON"); |
| 51 | } |
| 52 | char 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 | } |
| 63 | void KeyboardEvent::RosWhileLoopRun() |
| 64 | { |
| 65 | getch(); |