• 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 ... 17 18 19 20 21 ... 115 Next »

Binding Hotkeys to bluetooth passthrough Wii Remote buttons
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Binding Hotkeys to bluetooth passthrough Wii Remote buttons
03-01-2018, 06:43 AM
#1
aniken93
Unregistered
 
I've been looking at dolphin source code for a few hours looking for a way to do this, but all i found is the "BluetoothReal" class, but given that i have no experience in BT communication, i couldn't pin down a place where the actual message with the buttons/acceleration data is received by dolphin. Could any of you point me in the right direction?

It's not something i want to push on git as it would be an enormous task to do it cleanly, i just want to keep it for myself to use savestates and increase emulation speed while comfortably playing with a real Wii Remote in bluetooth passthrough.
Thanks.
Reply
03-02-2018, 08:42 AM
#2
mstreurman Offline
Above and Beyond
*******
Posts: 1,239
Threads: 11
Joined: Nov 2015
(03-01-2018, 06:43 AM)aniken93 Wrote: I've been looking at dolphin source code for a few hours looking for a way to do this, but all i found is the "BluetoothReal" class, but given that i have no experience in BT communication, i couldn't pin down a place where the actual message with the buttons/acceleration data is received by dolphin. Could any of you point me in the right direction?

It's not something i want to push on git as it would be an enormous task to do it cleanly, i just want to keep it for myself to use savestates and increase emulation speed while comfortably playing with a real Wii Remote in bluetooth passthrough.
Thanks.

 I don't think that it is possible. The passthrough passes through the Bluetooth adapter for which the Wii / Game will load the driver thus leaving Dolphin AND Windows out of the equation. Don't take my word for it since I am not a developer, but that is what I understood from earlier comments and reading up on the passthrough story.
Check my profile for up to date specs.
Find
Reply
03-02-2018, 08:50 AM
#3
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,645
Threads: 7
Joined: Oct 2014
(03-02-2018, 08:42 AM)mstreurman Wrote:  I don't think that it is possible. The passthrough passes through the Bluetooth adapter for which the Wii / Game will load the driver thus leaving Dolphin AND Windows out of the equation. Don't take my word for it since I am not a developer, but that is what I understood from earlier comments and reading up on the passthrough story.

It would be possible to read the Bluetooth data as it passes through Dolphin to the emulated Wii, but getting any useful information out of it is going to be tricky. I wouldn't recommend it.
Find
Reply
03-02-2018, 09:50 AM
#4
aniken93
Unregistered
 
(03-02-2018, 08:50 AM)JosJuice Wrote: It would be possible to read the Bluetooth data as it passes through Dolphin to the emulated Wii, but getting any useful information out of it is going to be tricky. I wouldn't recommend it.

I guess there must be at least one point in the code where all the data sent by the wii remote is passed as a variable. And digital buttons are either 0 or 1, though maybe it's all encrypted or something like that? Is that why you said it would be tricky to actually extract useful information?

Edit: Ok I get it, the data that is accessible to dolphin is not the packet sent by the wii remote, but it's the data sent by the Bluetooth adapter / driver, so that sounds more complicated, though I have no idea how it actually works, I guess there still must be a point somewhere where there data is accessible as a list of bytes that represent buttons state and motions.
Reply
03-02-2018, 10:14 AM
#5
mbc07 Offline
Wiki Caretaker
*******
Content Creators (Moderators)
Posts: 3,517
Threads: 46
Joined: Dec 2010
(03-02-2018, 09:50 AM)aniken93 Wrote: Edit: Ok I get it, the data that is accessible to dolphin is not the packet sent by the wii remote, but it's the data sent by the Bluetooth adapter / driver, so that sounds more complicated, though I have no idea how it actually works, I guess there still must be a point somewhere where there data is accessible as a list of bytes that represent buttons state and motions.
If you're using Bluetooth Passthrough, no, the RAW data passing through the BT Adapter is everything you get since this info is fed directly to the emulated software so it can handle the communication exactly how it would happen in a real Wii. If you're using real Wiimotes with the old "Emulate a BT Adapter" option, then yes, you can access the Wiimote packets by hooking in the code, but you would still need to parse them into usable button info...
Avell A70 MOB: Core i7-11800H, GeForce RTX 3060, 16 GB DDR4-3200, Windows 11 (Insider Preview)
ASRock Z97M OC Formula: Pentium G3258, GeForce GT 440, 16 GB DDR3-1600, Windows 10 (21H2)
Find
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