Is it possible to get a player's key events?

Place to get help with not working mods / modding interface.
bluMyst
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun May 15, 2016 3:53 am
Contact:

Is it possible to get a player's key events?

Post by bluMyst »

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.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: Is it possible to get a player's key events?

Post by Choumiko »

I think 0.13 will bring hotkeys for mods. Don't know whether this will include an event for key presses.
Post Reply

Return to “Modding help”