Display key press in OGRE output window

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
koreos
Halfling
Posts: 43
Joined: Fri Jun 20, 2014 7:05 pm

Display key press in OGRE output window

Post by koreos »

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.
User avatar
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

Post by c6burns »

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.
Post Reply