I've removed the need to have a default key on the mappings. The new "default" state is something that the app developer should define, not the user when doing the mappings.
You have two options here:
Use an optional parameter when registering input actions to define the initial state:
As discussed at https://github.com/fernandojsg/aframe-input-mapping-component/issues/15#issuecomment-344924485.
I've removed the need to have a
default
key on the mappings. The new "default" state is something that the app developer should define, not the user when doing the mappings. You have two options here:Use an optional parameter when registering input actions to define the initial state:
Or define it manually by setting the
currentInputMapping
variable:I've added some warnings when you try try to emit an event but the current mapping is not defined.