Mod hotkeys: custom-input documentation please?
Posted: Sun Aug 07, 2016 9:27 pm
Where can I find documentation on mod hotkeys? I haven't found anything in wiki or api documentation so far. It's a nice feature, but shrouded in fog of war at the moment.
Example data.lua:
What are the possible values and behaviours for "consuming"?
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?
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?