Help with keyboard to xbox 360?

Official forum for open source FreePIE discussion and development.
Post Reply
Canescj
One Eyed Hopeful
Posts: 21
Joined: Thu Oct 19, 2017 6:14 pm

Help with keyboard to xbox 360?

Post 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
Jabberwock
Cross Eyed!
Posts: 196
Joined: Mon Mar 02, 2015 3:58 pm

Re: Help with keyboard to xbox 360?

Post by Jabberwock »

What exact issues do you have? If you are more specific, there is a better chance someone could help you.
Canescj
One Eyed Hopeful
Posts: 21
Joined: Thu Oct 19, 2017 6:14 pm

Re: Help with keyboard to xbox 360?

Post by Canescj »

An exception gets thrown that says "Cant assign to read-only property of type 'XBox360PluginGlobal'"
Jabberwock
Cross Eyed!
Posts: 196
Joined: Mon Mar 02, 2015 3:58 pm

Re: Help with keyboard to xbox 360?

Post by Jabberwock »

Could you provide the code which causes that error?
Canescj
One Eyed Hopeful
Posts: 21
Joined: Thu Oct 19, 2017 6:14 pm

Re: Help with keyboard to xbox 360?

Post by Canescj »

Yeah it's:

Code: Select all

xbox360[0].a = keyboard.getKeyDown(Key.Space)
Jabberwock
Cross Eyed!
Posts: 196
Joined: Mon Mar 02, 2015 3:58 pm

Re: Help with keyboard to xbox 360?

Post 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
Canescj
One Eyed Hopeful
Posts: 21
Joined: Thu Oct 19, 2017 6:14 pm

Re: Help with keyboard to xbox 360?

Post by Canescj »

Thanks for all your help on this thread and the other one, I seriously appreciate it.
Jabberwock
Cross Eyed!
Posts: 196
Joined: Mon Mar 02, 2015 3:58 pm

Re: Help with keyboard to xbox 360?

Post 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.
Post Reply

Return to “FreePIE”