2015-04-02, 22:07
Hello,
I am developing a skin to better leverage the Xbox 360 controller. While creating it, I noticed the default keymaps for X360 were off compared to an Xbox interface. (X for backspace for example).
I wanted to populate the userdata folder with the custom keymap when the skin is installed. I could not figure a way to do this at install time, so I created an addon to run a python script that unzip a package to put the files in there place. Less than ideal.
Questions:
1: is there a way to install these files when I install the skin?
2: if the skin cannot place these files in place, is there a way to run the add-on at time of install? (I have it as a requirement of the skin.)
3: baring 1 & 2 is there a means to set an add-on to run as a service but only run once?
4: any better ways to accomplish this task?
Thanks for any advice.
I am developing a skin to better leverage the Xbox 360 controller. While creating it, I noticed the default keymaps for X360 were off compared to an Xbox interface. (X for backspace for example).
I wanted to populate the userdata folder with the custom keymap when the skin is installed. I could not figure a way to do this at install time, so I created an addon to run a python script that unzip a package to put the files in there place. Less than ideal.
Questions:
1: is there a way to install these files when I install the skin?
2: if the skin cannot place these files in place, is there a way to run the add-on at time of install? (I have it as a requirement of the skin.)
3: baring 1 & 2 is there a means to set an add-on to run as a service but only run once?
4: any better ways to accomplish this task?
Thanks for any advice.