• 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 … 28 29 30 31 32 … 117 Next »

A little help with the code plz
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
A little help with the code plz
03-31-2016, 08:06 AM
#1
Mr.Pottatto Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Mar 2016
Hello guys, I'm workin on a project that uses the same conection that Wiimote have with the dolphinbar, but in a little different way, and I thought that you guys may help me with this. Straight to the point, if possible, I thought that you may give me some hints about the part of the dolphin's code that works on the identification of the Wiimotes, and how it interprets the movements of the control, so I can simulate the movement, just like the emulator does.
Sorry for the bad english, it's not my main language
Find
Reply
03-31-2016, 06:20 PM
#2
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
Oh, we do not parse the wiimote data stream, we just pass it to the game. So there is no need to look for this kind of code in dolphin. However, you may look at the emulated wiimote code: https://github.com/dolphin-emu/dolphin/t...WiimoteEmu
Find
Reply
04-02-2016, 07:38 AM (This post was last modified: 04-02-2016, 11:37 AM by Mr.Pottatto.)
#3
Mr.Pottatto Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Mar 2016
But how does dolphin emulate, or "see" the moviment, how the emulator associates the data stream that comes from the dolphinbar with the game that is been played? There must to be a direct connection between the dolphinbar and the dolphin to recognize a wiimote in movement, right? Or is it sent direct to the game?
Find
Reply
04-02-2016, 06:02 PM
#4
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
We read the USB data with libusb, and pass the steam without encoding/decoding to the game. On the real hardware, a wiimote is an open file stream, just like the USB connection.
Find
Reply
04-03-2016, 02:23 PM
#5
Mr.Pottatto Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Mar 2016
(04-02-2016, 06:02 PM)degasus Wrote: We read the USB data with libusb, and pass the steam without encoding/decoding to the game. On the real hardware, a wiimote is an open file stream, just like the USB connection.

I got it, very very thank you for your help, if I do some change in the code, and it shows itself somehow useful to the emulator, I'll give it to you guys as collaboration to your awesome project. Again, thank you.
Find
Reply
04-05-2016, 09:16 AM
#6
Mr.Pottatto Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Mar 2016
Just a question, do you have any idea of how the game reads and shows the movements?
Find
Reply
04-05-2016, 05:55 PM
#7
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
It parses the data stream, and uses the information in it. I'm sorry, I have no clue about the data stream format, but I'll encourage you to look at our emulated wiimote code. Generating and parsing should be familiar.
Find
Reply
04-05-2016, 07:48 PM
#8
Mr.Pottatto Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Mar 2016
I needed the emulated wiimote code anyway to my project, so very very thank you for have shown it to me without hesitation, i thought that it wold have been a little different but you showed yourself very supportive and I'm very grateful for this. I'll do some searching to find how the game reads the usb stream, so thank you again.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma