Arrow keys and normal input question
I have a game which is text-based. I'm trying to incorporate the arrow keys. I know what the values are. What I'm trying to do is be able to differentiate the difference between the player using the arrow keys and typing input.
What I've tried so far was just detect for an extended character. This works but if it is a normal key, that character does not show up as part of an input.
Here's an example of what I want to do:
player is in a room.
player wants to move so he presses the arrow key up.
player moves up from pressing only one key.
player sees something and now wants to look at it.
player types "look object"
If you get what I'm trying to do, it's not that easy for me. I thought about just taking the letter if pressed and then appending the rest of the input a player would put in, but that won't work if the player then decides to backspace through it all and retype something. That first letter will always stay the same.