The "Any" and "Any+UP" macros are great tools for flexible input systems. It would be nice to also have new tools for precise input systems.
This could be a change to the current Any macros or a new type of macro entirely. In the command, instead of [[*]] being replaced with the button name in string form, it would be nice to receive the button's raw integer ID instead (the hex value passed in from the OS).
An example of where this would be useful is a game where it is preferable to process input multiple times per tick, like a fighting game. Currently a way we can do this is by setting up the Any macros to call a client verb that has set instant = 1. The verb's argument is the button pressed in string form.
The problem here is that in cases like this we need to process that input as fast as possible so the player doesn't think input feels laggy or unresponsive. Processing strings is expensive in comparison to integers and when we're talking about processing strings multiple times per tick that cost really starts to matter.
Jan 7, 6:10 pm
Login to reply.