Genymobile / genymotion-device-web-player

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

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

Closed jparez closed 1 week ago

jparez commented 1 month 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'
    }],