Jump to content


Photo

Swiix : Skarik's Wiimote Controls : R3


  • Please log in to reply
10 replies to this topic

#1 Skarik

Skarik

    GMC member

  • GMC Member
  • 1068 posts
  • Version:GM:Studio

Posted 18 July 2009 - 01:41 AM


SO

What makes this library better than other Game Maker Wii libraries?
It doesn't require .Net - It's probably faster - And it's tiny compared to the other guys

R3 is untested. I need people to help test this.

INFO
GMK included with accelerometer example and led stuff
C++ source included

REQUIREMENTS
R3:
You'll need to connect your Wii Remote to your PC somehow. There are no other requirements, asides from Windows only.
R2 & R1:
If your OS is below Windows XP SP2, you'll need to install a C++ run-time library. If you need really to download that, that's sad.
You'll also need to connect your Wii Remote to your PC somehow.

DOWNLOAD
R3 Box.net - 86.1 KB - GMK Sample Project + GML code
R3 Box.net - 138 KB - C++ Source + GMK + GML
R2 Box.net - ~200 KB
R1 Box.net - ~200 KB

To compile, you'll need the DDK or something similar. Instructions on how to compile are in WiiYourself!'s source code download.

CHANGES
R3
- Added multiple Wii remote support
- Upgraded to WiiYourself! 1.15 from WiiYourself! 1.01
- Allowed for change of rumble time on SetRumbleOnConnect
R2
- Added two rumble functions that should have been there
- Prepared source to add sound support
- Decreased size from 120 KB to 27 KB

Posted Image

BUGS
R3
R3 is untested. I have no Wii remote to test it on, but I get no memory allocation errors, so I assume everything is going smoothly. I need people to help test this.
R1 & R2
Dunno. I use something different than all the other stuff AND I made this in a day, so I have no idea.
If you're far away, the update function will return that you're losing connection every other step. The less the battery, the more this happens.
If you connect and the lights are still blinking, you'll need to disconnect the device first by the method of this DLL or like. To do that, just run the example.
I'm guessing that people are going to have problems with this. I have problems too. I'll see if I can work them out, but this is my first DLL, so I doubt it.

CREDITS
gl.tter's WiiYourself! C++ Wiimote control

MORE TO COME
Only if people want it. I'll definitely be updating this with sound support, but beyond that? Nah, I included the damn source. Use it.
I only update this because people ask. I'm a nice person. Who the hell do you think I am?!


Edited by Skarik, 24 December 2010 - 07:25 PM.

  • 0

#2 Skarik

Skarik

    GMC member

  • GMC Member
  • 1068 posts
  • Version:GM:Studio

Posted 18 July 2009 - 04:29 PM

I finally got the damn release compile working, so now the size has dropped from 120 KB to 27 KB, which is smaller than anything else. :) I also added a few extra functions which should have been there yesterday. I've been getting problems with connecting from two separate instances of SWiiX.dll, so I'm guessing if you must do that, you'll have to disconnect your controller manually. Yup, enjoy.
  • 0

#3 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 18 July 2009 - 04:38 PM

Sweet :)
Now there are Three Wii Remote dlls/extensions, two of which are open source.

Mind adding a feature list?

edit:
lol, the led randomiser is funny

Edited by Caniac, 18 July 2009 - 04:44 PM.

  • 0

#4 piluke

piluke

    Pixel Matrix Member

  • GMC Member
  • 491 posts
  • Version:GM8.1

Posted 30 October 2010 - 03:58 PM

I made an extension for this here.

I hope that's okay...

EDIT:
I took out the link for the extension because it was glitchy and I don't feel like updating it.

Edited by piluke, 02 November 2010 - 10:27 PM.

  • 0

#5 Skarik

Skarik

    GMC member

  • GMC Member
  • 1068 posts
  • Version:GM:Studio

Posted 24 December 2010 - 07:27 PM

Updated to latest version of WiiYourself! and added multiple Wiimote support. Please test very much yes.

I'll add more support later. I don't feel like kicking Game Maker's ass today.

Edit:
Oh, and yippee ki-yay mothertruckers. Have ye all a safe and merry Christmas.

Edited by Skarik, 24 December 2010 - 07:36 PM.

  • 0

#6 linkis20

linkis20

    GMC Member

  • New Member
  • 18 posts

Posted 26 February 2011 - 05:26 PM

R3 Works For The Most Part.
I Test It All And This Is The Result:

SWiiX_init:Works
SWiiX_SetRumbleOnConnection:Works
SWiiX_ConnectController:Works
SWiiX_ReconnectController:Works
SWiiX_DisconnectController:Works
SWiiX_UpdateController:Works
SWiiX_UpdateControllers:Works
SWiiX_GetButtonDownA:Don't Works
SWiiX_GetButtonDownB:Don't Works
SWiiX_GetButtonDownPlus:Don't Works
SWiiX_GetButtonDownHome:Don't Works
SWiiX_GetButtonDownMinus:Don't Works
SWiiX_GetButtonDownOne:Don't Works
SWiiX_GetButtonDownTwo:Don't Works
SWiiX_GetButtonDownUp:Don't Works
SWiiX_GetButtonDownDown:Don't Works
SWiiX_GetButtonDownLeft:Don't Works
SWiiX_GetButtonDownRight:Don't Works
SWiiX_GetAccelerationX:Works
SWiiX_GetAccelerationY:Works
SWiiX_GetAccelerationZ:Works
SWiiX_SetWiiMoteLED:Don't Works
SWiiX_GetBatteryPower:Works
SWiiX_SetRumbleOn:Works
SWiiX_RumbleForTime:Works

So .Net Framework Works Not For Me.
Plzz Keep Working On It.

NVG.
  • 0

#7 luenardi

luenardi

    GMC Member

  • New Member
  • 323 posts

Posted 13 March 2011 - 11:35 PM

Updated to latest version of WiiYourself! and added multiple Wiimote support. Please test very much yes.

I'll add more support later. I don't feel like kicking Game Maker's ass today.

Edit:
Oh, and yippee ki-yay mothertruckers. Have ye all a safe and merry Christmas.

His epicness lives on.
  • 0

Posted Image

My system: CoreI5 661, 6GB Ram, 2X GF280GTX 2GB, Boot Drive 6GBPS SDD, 2x 500GB storage.
Boot time on Win7 Ultimate 5.02 seconds.

#8 Zesterer

Zesterer

    Professor of Articul

  • GMC Member
  • 1044 posts
  • Version:GM8

Posted 15 March 2011 - 05:05 PM

This actually works!

I am genuinley shocked and amazed at the same time!

Does it support buttons?

(A,B,Z,C,control stick, arrows, power button, 1,2,+ and - and home button?)

If it did, that would be amazing!
  • 0

Fortified - The sword thrusting, castle busting, catapult adjusting new Tower Defense game!

More projects and work coming soon... If you need help on voxels, mesh rendering, physics, perlin noise generation, 3D, mathematics or more just contact me and I'll be happy to help!

Skype: zesterer                Email: barry.of.smith@gmail.com <---- Actually, don't use this address, I never check it.


#9 Skarik

Skarik

    GMC member

  • GMC Member
  • 1068 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:46 PM

@Linkis20

Thank you for the list, I can keep working on this.

@Zesterer

The older versions support buttons. The current R3 does not work.
  • 0

#10 AndrewB

AndrewB

    Kibbles and bits

  • New Member
  • 336 posts
  • Version:GM8

Posted 09 May 2011 - 09:43 AM

This is really good, shame R3 doesn't work as intended. I know it's an old topic but are you still going to update this? Support for multiple controllers would be awesome!
  • 0

I can has plus?


#11 Skarik

Skarik

    GMC member

  • GMC Member
  • 1068 posts
  • Version:GM:Studio

Posted 16 May 2011 - 03:13 PM

Oh, I'll update this later this week actually. I just don't have any way of testing this, since I don't have any Wii remotes available. Otherwise, things would definitely be fixed today. Or yesterday.
  • 0