wizzomafizzo / tapto

Launch games using physical objects
GNU General Public License v3.0
64 stars 9 forks source link

Extend input.key command to allow multiple human readable keys #26

Open wizzomafizzo opened 4 months ago

wizzomafizzo commented 4 months ago

Currently the input.key command only accepts one single key argument in the format of the uinput code from the linux kernel. It's pretty awkward and I think could be a lot more useful

It would be good to:

Maybe it could go even further than this, and a simple macro language could be created that also includes stuff like shorthand for pressing the same key multiple times a[10] and delays

Some thoughts about implementation:

It's also occurred to me that this is technically an arbitrary code execution vulnerability. Do we want to close that up? Probably simple as not allowing switch to console if the menu core is open (unless allow_commands is enabled)