| 217 | | addKey(pos,osgGA::GUIEventAdapter::KEY_Up,"Up",2.0f,cursorMoveHeight); |
| 218 | | |
| 219 | | |
| | 219 | addKey(pos,osgGA::GUIEventAdapter::KEY_Up,"Up",1.0f,cursorMoveHeight); |
| | 220 | |
| | 221 | |
| | 222 | float homeHeight = 0.35f; |
| | 223 | pos = middle; |
| | 224 | pos.z() += 3.0; |
| | 225 | addKey(pos,osgGA::GUIEventAdapter::KEY_Delete,"Delete",1.0f,homeHeight); |
| | 226 | addKey(pos,osgGA::GUIEventAdapter::KEY_End,"End",1.0f,homeHeight); |
| | 227 | addKey(pos,osgGA::GUIEventAdapter::KEY_Page_Down,"Page\nDown",1.0f,homeHeight); |
| | 228 | |
| | 229 | pos = middle; |
| | 230 | pos.z() += 4.0; |
| | 231 | addKey(pos,osgGA::GUIEventAdapter::KEY_Insert,"Insert",1.0f,homeHeight); |
| | 232 | addKey(pos,osgGA::GUIEventAdapter::KEY_Home,"Home",1.0f,homeHeight); |
| | 233 | addKey(pos,osgGA::GUIEventAdapter::KEY_Page_Up,"Page\nUp",1.0f,homeHeight); |
| | 234 | |
| | 235 | pos = middle; |
| | 236 | pos.z() += 5.5; |
| | 237 | addKey(pos,osgGA::GUIEventAdapter::KEY_Print,"PrtScrn\nSysRq",1.0f,homeHeight); |
| | 238 | addKey(pos,osgGA::GUIEventAdapter::KEY_Scroll_Lock,"ScrLk",1.0f,homeHeight); |
| | 239 | addKey(pos,osgGA::GUIEventAdapter::KEY_Pause,"Pause\nBreak",1.0f,homeHeight); |
| | 240 | |
| | 241 | |
| | 242 | |
| | 243 | pos = keypad; |
| | 244 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Insert,"0",2.0f,1.0f); |
| | 245 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Delete,".",1.0f,1.0f); |
| | 246 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Enter,"Enter",1.0f,homeHeight); |
| | 247 | |
| | 248 | pos = keypad; |
| | 249 | pos.z() += 1.0f; |
| | 250 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_End,"1",1.0f,1.0f); |
| | 251 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Down,"2",1.0f,1.0f); |
| | 252 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Page_Down,"3",1.0f,1.0f); |
| | 253 | |
| | 254 | pos = keypad; |
| | 255 | pos.z() += 2.0f; |
| | 256 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Left,"4",1.0f,1.0f); |
| | 257 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Begin,"5",1.0f,1.0f); |
| | 258 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Right,"6",1.0f,1.0f); |
| | 259 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Add,"+",1.0f,1.0f); |
| | 260 | |
| | 261 | pos = keypad; |
| | 262 | pos.z() += 3.0f; |
| | 263 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Home,"7",1.0f,1.0f); |
| | 264 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Up,"8",1.0f,1.0f); |
| | 265 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Page_Up,"9",1.0f,1.0f); |
| | 266 | |
| | 267 | pos = keypad; |
| | 268 | pos.z() += 4.0f; |
| | 269 | addKey(pos,osgGA::GUIEventAdapter::KEY_Num_Lock,"Num\nLock",1.0f,0.3f); |
| | 270 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Divide,"/",1.0f,1.0f); |
| | 271 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Multiply,"*",1.0f,1.0f); |
| | 272 | addKey(pos,osgGA::GUIEventAdapter::KEY_KP_Subtract,"-",1.0f,1.0f); |