Example data.lua:
Code: Select all
data:extend({
{
type = "custom-input",
name = "handyhands-increase",
key_sequence = "ALT + Q",
consuming = "all"
},{
type = "custom-input",
name = "handyhands-decrease",
key_sequence = "mouse-button-2",
}
})
How do I translate a key_sequence to a text string, for any key sequence possible?
Are there other keys I should be aware of exept name and type that I can use?
Is it possible to detect key release/hold status?
What keys does the event object contain? player_index and something else?
Anything else I should know?