Skip to content

Commit

Permalink
Fix report size when reading ds3 adresses
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryOderNichts committed Jan 18, 2022
1 parent 88b3ffd commit 5446991
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ More info about Tiramisu here: https://maschell.github.io/homebrew/2021/12/31/ti
- Once you're booted into Tiramisu and are in the Wii U menu, press the SYNC button on your console and controller
- Wait until the Controller is connected

If a controller had been paired in the past, simply turn it on again and it should reconnect.

## Pairing a DualShock 3
The DualShock 3 needs to be paired using a USB cable. After the initial pairing it can be used like any other wireless Bluetooth controller.
- Open the Bloopair pairing app from the Homebrew Launcher. You should now be in the USB pairing menu.
Expand Down
4 changes: 2 additions & 2 deletions dist/wiiu/apps/Bloopair_pair_menu/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<app version="1">
<name>Bloopair Pairing Menu</name>
<coder>GaryOderNichts</coder>
<version>v0.5.0-tiramisu</version>
<release_date>20211124120000</release_date>
<version>v0.5.1</version>
<release_date>20220118120000</release_date>
<short_description>DS3 Pairing Menu for Bloopair</short_description>
<long_description>
Pairs DualShock 3 controllers using USB to the console.
Expand Down
2 changes: 1 addition & 1 deletion pair_menu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static IOSHandle btrmHandle = -1;

int ds3ReadBDA(uint32_t handle, uint8_t* outBDA)
{
__attribute__ ((aligned (0x20))) uint8_t buf[18]{};
__attribute__ ((aligned (0x20))) uint8_t buf[17]{};
int res = HIDGetReport(handle, HID_REPORT_FEATURE, 0xf2, buf, sizeof(buf), nullptr, nullptr);
if (res >= 0) {
memcpy(outBDA, buf + 4, 6);
Expand Down

0 comments on commit 5446991

Please sign in to comment.