Search found 2 matches
- Fri Aug 05, 2022 6:14 am
- Forum: Modding interface requests
- Topic: Add Lua API feature to find held inputs/keys or listen for on_input_released events
- Replies: 5
- Views: 1705
Re: Add Lua API feature to find held inputs/keys or listen for on_input_released events
Do note that due to how the game and modding work, all clients will need to know this info. Meaning it being sent over the network. Meaning that reading key state isn't going to happen. I think that your best bet is an extension of custom inputs to allow them triggering on key release. That said, I...
- Wed Aug 03, 2022 8:13 am
- Forum: Modding interface requests
- Topic: Add Lua API feature to find held inputs/keys or listen for on_input_released events
- Replies: 5
- Views: 1705
Add Lua API feature to find held inputs/keys or listen for on_input_released events
TL;DR Add a feature to the Lua API that allows scripts to get a player's current inputs/keypresses , or to listen for something like an on_input_released event . What ? I've just run into a brick wall trying to implement a mod feature that involves holding down RMB, because currently Factorio does ...