How can I show which key is pressed while running my OGRE application on OGRE screen window itself?
Eg. If I press 'X' then 'X' should be displyed on the screen.
Display key press in OGRE output window
-
- Halfling
- Posts: 43
- Joined: Fri Jun 20, 2014 7:05 pm
- c6burns
- Beholder
- Posts: 1512
- Joined: Fri Feb 22, 2013 4:44 am
- Location: Deep behind enemy lines
- x 138
Re: Display key press in OGRE output window
An OIS::KeyEvent has a text property, which I believe is the ASCII representation of the key. Use it to update the contents of a TextAreaOverlayElement or an SdkTray panel param.