I can define a control and then register an event listener to execute a script when user presses that key.
I would like to do similarly but for the base game controls - e.g. when user presses M to open a map.
Is there any way to achieve that or do I have to define my own control and ask the user to set both my control and the base game control to the same key?
How to listen to existing key events?
Re: How to listen to existing key events?
Link your custom input prototype to a game control using https://wiki.factorio.com/Prototype/Cus ... me_control. Then just treat it like any custom input in your event handling.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: How to listen to existing key events?
Not sure how I missed that... Thanks a lot!

