Page 1 of 1

Help with keyboard to xbox 360?

Posted: Fri Oct 20, 2017 2:19 pm
by Canescj
Need help scripting keyboard input to xbox 360 output. I'm kinda new to scripting and having trouble with the analog sticks and the triggers. Thanks in advance

Re: Help with keyboard to xbox 360?

Posted: Sun Oct 22, 2017 11:56 am
by Jabberwock
What exact issues do you have? If you are more specific, there is a better chance someone could help you.

Re: Help with keyboard to xbox 360?

Posted: Thu Oct 26, 2017 8:23 pm
by Canescj
An exception gets thrown that says "Cant assign to read-only property of type 'XBox360PluginGlobal'"

Re: Help with keyboard to xbox 360?

Posted: Fri Oct 27, 2017 12:30 am
by Jabberwock
Could you provide the code which causes that error?

Re: Help with keyboard to xbox 360?

Posted: Fri Oct 27, 2017 7:24 pm
by Canescj
Yeah it's:

Code: Select all

xbox360[0].a = keyboard.getKeyDown(Key.Space)

Re: Help with keyboard to xbox 360?

Posted: Sat Oct 28, 2017 2:22 am
by Jabberwock
This is because the built-in code for xbox360 is for reading the values of the physical xbox controller only, not for its emulation (if you look at the page http://andersmalmgren.github.io/FreePIE/ you will see it only has a folder icon, which is reading, not a pencil).

What you need is a plugin that emulates an xinput controller. One of those is xoutput:

https://github.com/dschu012/XOutputPlugin

Re: Help with keyboard to xbox 360?

Posted: Sat Oct 28, 2017 7:16 pm
by Canescj
Thanks for all your help on this thread and the other one, I seriously appreciate it.

Re: Help with keyboard to xbox 360?

Posted: Sun Oct 29, 2017 6:10 am
by Jabberwock
You are welcome, let me know if you need anything else. I am not much of a programmer, so I cannot help with the development, but if I think I can help otherwise, I try.