• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 14 15 16 17 18 ... 115 Next »

WiiMote source code
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
WiiMote source code
07-05-2018, 08:29 AM
#1
EtK2000
Unregistered
 
I'm building a game and I'd like to support WiiMotes as an input device.
I've searched all around for libraries that support this, trying all of them to no avail.
Then I remembered that Dolphin+Mayflash works for me.

So I opened GitHub and forked it to look through the source code and find where it does everything.
The sheer quantity of source files and their lengths scared me a lot, and made it a bit hard to pinpoint where everything was happening especially due to VS's debugger not being useful.

So basically I'm asking if anyone is familiar with the source (or at least the input portion), can you help point me in the right direction.
I'm fairly sure it falls under InputCommon, but I'd prefer someone who is more knowledgeable than myself to help if possible.

Thanks!
Reply
07-05-2018, 08:42 AM
#2
AnyOldName3 Offline
First Random post over 9000
*******
Posts: 3,507
Threads: 1
Joined: Feb 2012
It might be better to look at HIDWiimote as they only focus on one thing. I think they're open-source, so you should be able to take a peek at what they're doing.
OS: Windows 10 64 bit Professional
CPU: AMD Ryzen 5900X
RAM: 16GB
GPU: Radeon Vega 56
Find
Reply
07-05-2018, 09:21 AM
#3
EtK2000
Unregistered
 
HIDWiimote seems to be open-source, although I'm not quite sure it'll help me much.
It's a windows driver, meaning I'm not sure I can combine it with my code.
I prefer how Dolphin works without requiring a new driver afaik, or of it does have one it's at least unnoticed and platform independent.

I'll look into it still, it might be a good starting point.
Thanks!
Reply
07-05-2018, 04:45 PM
#4
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,648
Threads: 7
Joined: Oct 2014
If you're looking for code that parses the incoming data, Dolphin doesn't have it. It just passes the raw data into the game.
Find
Reply
07-05-2018, 05:40 PM
#5
EtK2000
Unregistered
 
I'm fine manually parsing the data, I just need the source that interfaces with it as an input device via Bluetooth and/or MayFlash.
Reply
07-05-2018, 05:48 PM
#6
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,648
Threads: 7
Joined: Oct 2014
(07-05-2018, 05:40 PM)EtK2000 Wrote: I'm fine manually parsing the data, I just need the source that interfaces with it as an input device via Bluetooth and/or MayFlash.

Alright, here it is: https://github.com/dolphin-emu/dolphin/tree/master/Source/Core/Core/HW/WiimoteReal
Find
Reply
07-05-2018, 06:14 PM
#7
EtK2000
Unregistered
 
Thanks a ton!
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode