Is it possible to get a player's key events?
Is it possible to get a player's key events?
I'm making a GUI tool, and I'd love it if I could respond to two things: The user pressing a key to show/hide the GUI, and the user pressing enter on a textbox. Is it possible to get the user's keypresses? Hopefully as an event? And also, is it possible to find out if the user pressed enter on a textbox? The docs don't mention anything like this, but I thought I'd check on the forums before I start writing hacky workarounds and stuff.
In my infinite ambivalence.
Re: Is it possible to get a player's key events?
I think 0.13 will bring hotkeys for mods. Don't know whether this will include an event for key presses.