Adding keymapping feature. Somes refacto over the store, handle events, ... was recommended or necessery.
I have left some comments to helping to review.
Gesture handle
d-pad
swipe
tap
mouse
Config
You can find some json config example at the top of keymapping plugin file. Cooordonate are always in percent
Api added
setConfig to change the config, supply a valid json config.
activeKeyMappingDebug with 2 boolean in parameter
if first parameter is true, click on \<video> will display a square with x / y coordonate
the second display a grid over \<video> slice by 10%
v1
the d-pad isn't well handle on every games (fps could be nonfunctionnal)
mouse event not handle
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Description
Adding keymapping feature. Somes refacto over the store, handle events, ... was recommended or necessery. I have left some comments to helping to review.
Gesture handle
Config
You can find some json config example at the top of keymapping plugin file. Cooordonate are always in percent
Api added
v1
Type of change
Checklist