"clearing" accept

Just wondering if there’s a simple way to “clear” a key’s accept setup.

For example, if I use ESC to do different things in parts of my app - how would I make it do nothing on a specific screen? (I know I could set it to a method that does nothing, but is there another way?

I guess you could just ignore the key press…


Use multiple DirectObjects for different controls and/or states. E.g. in the main menu you accept the arrow keys, enter and escape, while when switching to the game you simply destroy that DO and activate another one which accepts your WASD control and so on.

ah, thanks Nemesis - that sounds like a good approach. I’ll give it a try.