@7hir7een: Thanks, that was massively helpful

. I should be able to get the physical buttons working, as well as the orientaiton support with all this

.
And the final command failing can be explained by the fact that there's >9 input devices, but I should be able to figure it out thanks to the manual cat I asked you for, so all's good

.
EDIT: Also, Lua escaping, ooops.