ok i finally uploaded everything and made a readme on github. Everything works now, when mouse mode is active the keys from your buttons are not registered anymore and you can switch between mouse mode and your normal input method. you specify and remap existing keys of your encoder specifically for use in mouse mode (you tell it if i press this button which is key CTRL for example then send key F5 instead). You can specify 6 keys like this.
i did not find a game yet that did not work with this version, my readme needs work though but it's a rather long readme for something simple to setup