Genymobile / genymotion-device-web-player

Genymotion Virtual Device Web Player
https://www.genymotion.com/
MIT License
104 stars 34 forks source link

[PLAYER-30] remplace the key 'keys' to 'key' for keympapping tap et swipe #94

Closed jparez closed 2 months ago

jparez commented 3 months ago

Description

replace the key named keys to 'key' for tap and swipe in the json config

update json keymapping config.

TYPE:[{
        keys: {
            p: {
                initialX: 50,
                initialY: 50,
            },
        }
        name:'Fire'
    }],

to

dPad:[{
        keys: {
            key: 'p',
            effect: {
                initialX: 50,
                initialY: 50,
            },
        }
        name:'Fire'
    }],
tap:[{
         key: 'p',
         effect: {
             initialX: 50,
             initialY: 50,
         },
         name:'Fire'
    }],