It is currently Tue Jan 17, 2017 7:08 am



Reply to topic  [ 4 posts ] 
 Requesting help with Wiimote controller script. 
Author Message
One Eyed Hopeful

Joined: Sun Jul 24, 2016 1:32 pm
Posts: 2
Hello, I created a script to use my wii remote as a controller but am having some trouble. The script was based on example scripts I found on the FreePIE website, reverse-engineered to the best of my ability where needed. It mostly works, with M+ mouse movement working as expected (and tweaked a bit) and buttons pushing, but I need some help with the following:

1: Get nunchuck stick to work. I don't know of a way to map it to WASD, if that's even possible in FreePIE.
2: Get buttons to repeat while held. I found a hacky way to get the nunchuck buttons to repeat while held but it doesn't work with the wii remote buttons at all.
3: Get M+ to work correctly. If I use just the M+ mouse emulation script, it's fine, but in mine, it lags too much to be usable. I'm not sure if it's something I'm doing wrong or if the script needs restructured to reduce lag or if there's nothing I can do about it.

I am at wits end with this and would appreciate any help anyone could offer.


You do not have the required permissions to view the files attached to this post.


Fri Jul 29, 2016 10:17 am
Profile
Cross Eyed!
User avatar

Joined: Thu Apr 09, 2015 4:27 am
Posts: 102
GamerAim wrote:
Hello, I created a script to use my wii remote as a controller but am having some trouble. The script was based on example scripts I found on the FreePIE website, reverse-engineered to the best of my ability where needed. It mostly works, with M+ mouse movement working as expected (and tweaked a bit) and buttons pushing, but I need some help with the following:

1: Get nunchuck stick to work. I don't know of a way to map it to WASD, if that's even possible in FreePIE.
2: Get buttons to repeat while held. I found a hacky way to get the nunchuck buttons to repeat while held but it doesn't work with the wii remote buttons at all.
3: Get M+ to work correctly. If I use just the M+ mouse emulation script, it's fine, but in mine, it lags too much to be usable. I'm not sure if it's something I'm doing wrong or if the script needs restructured to reduce lag or if there's nothing I can do about it.

I am at wits end with this and would appreciate any help anyone could offer.


Have you looked at Tqwando's scipt here? It too uses M+ and a nunchuck. The best way to get a buutton to repeat while held is to use a while loop with that button as the condition.

I no longer like working with the wiimotes because they always seem such a pain to connect but if you need more detailed help I'll go over your script tomorrow.


Fri Jul 29, 2016 1:34 pm
Profile
One Eyed Hopeful

Joined: Sun Jul 24, 2016 1:32 pm
Posts: 2
zelmon64 wrote:
GamerAim wrote:
Hello, I created a script to use my wii remote as a controller but am having some trouble. The script was based on example scripts I found on the FreePIE website, reverse-engineered to the best of my ability where needed. It mostly works, with M+ mouse movement working as expected (and tweaked a bit) and buttons pushing, but I need some help with the following:

1: Get nunchuck stick to work. I don't know of a way to map it to WASD, if that's even possible in FreePIE.
2: Get buttons to repeat while held. I found a hacky way to get the nunchuck buttons to repeat while held but it doesn't work with the wii remote buttons at all.
3: Get M+ to work correctly. If I use just the M+ mouse emulation script, it's fine, but in mine, it lags too much to be usable. I'm not sure if it's something I'm doing wrong or if the script needs restructured to reduce lag or if there's nothing I can do about it.

I am at wits end with this and would appreciate any help anyone could offer.


Have you looked at Tqwando's scipt here? It too uses M+ and a nunchuck. The best way to get a buutton to repeat while held is to use a while loop with that button as the condition.

I no longer like working with the wiimotes because they always seem such a pain to connect but if you need more detailed help I'll go over your script tomorrow.


Thank you. After looking at that script, I solved 1 and 2 but further testing indicates that FreePIE or the Wii remote or something isn't capable of handling mouse emulation in addition to other functions without lag. Even just doing air mouse + analog stick to WASD results in severe lag. I am curious if this fault is present in GlovePIE, but cannot test it because I am unable to find a clean copy of it anywhere anymore. Sadly, it seems that my dreams of using the wii remote as a PC controller have been crushed, since FreePIE is too slow, WiinUSoft lacks motion plus integration and GlovePIE cannot be found anywhere.


Fri Jul 29, 2016 4:29 pm
Profile
Cross Eyed!
User avatar

Joined: Thu Apr 09, 2015 4:27 am
Posts: 102
GamerAim wrote:
Thank you. After looking at that script, I solved 1 and 2 but further testing indicates that FreePIE or the Wii remote or something isn't capable of handling mouse emulation in addition to other functions without lag. Even just doing air mouse + analog stick to WASD results in severe lag. I am curious if this fault is present in GlovePIE, but cannot test it because I am unable to find a clean copy of it anywhere anymore. Sadly, it seems that my dreams of using the wii remote as a PC controller have been crushed, since FreePIE is too slow, WiinUSoft lacks motion plus integration and GlovePIE cannot be found anywhere.

When I have had lag issues it was because of the bt adapter I was using (bt 2.0). I'd highly recommend getting a bt 4.0 adapter. I used to use the wiimote specifically for mouse emulation (played pictionary once) so I can confirm that it should be good enough with the right equipment.


Fri Jul 29, 2016 5:29 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.