Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding DRC (Wii U GamePad) support to Not64 (basing in FIX94's work) (experimental, needs testing) #4

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
480e15a
Add DRC (Wii U GamePad) support for Wii U
saulfabregwiivc Nov 10, 2021
8a5410b
Add DRC (Wii U GamePad) support (FIX94, emukidid)
saulfabregwiivc Dec 17, 2021
bffc69b
Merge pull request #1 from saulfabregwiivc/patch-2
saulfabregwiivc Dec 17, 2021
61395eb
Add DRC (Wii U GamePad) support
saulfabregwiivc Dec 17, 2021
9428dcf
Add DRC (Wii U GamePad) support (FIX94)
saulfabregwiivc Dec 17, 2021
61e863a
Add DRC (Wii U GamePad) support (FIX94)
saulfabregwiivc Dec 17, 2021
37e0567
Add DRC (Wii U GamePad) support (FIX94, emukidid)
saulfabregwiivc Dec 17, 2021
6dddec7
Add DRC (WiiU GamePad) support from Wii64 (FIX94, emukidid)
saulfabregwiivc Dec 17, 2021
0432362
Merge pull request #2 from saulfabregwiivc/patch-2
saulfabregwiivc Dec 17, 2021
0fefb94
Add DRC (Wii U GamePad) support (emukidid, FIX94)
saulfabregwiivc Dec 17, 2021
38a1823
Add DRC (Wii U GamePad) support (FIX94)
saulfabregwiivc Dec 17, 2021
a1cf704
Add DRC (WiiU GamePad) support (FIX94)
saulfabregwiivc Dec 17, 2021
aa7f8e2
Add DRC (WiiU GamePad) support (FIX94)
saulfabregwiivc Dec 17, 2021
a801f11
Add DRC (Wii U GamePad) support from Wii64 (FIX94)
saulfabregwiivc Dec 17, 2021
fdefec2
Add DRC (Wii U GamePad) support (FIX94)
saulfabregwiivc Dec 17, 2021
57d4dbe
Add DRC (Wii U GamePad) support using libwiidrc (FIX94)
saulfabregwiivc Dec 17, 2021
395e2c4
Added a thing for "fix" the build based in mupen64gc-fix94
saulfabregwiivc Dec 17, 2021
74facba
Missed added the -DRVL_LIBWIIDRC fir finish adding DRC support (i thi…
saulfabregwiivc Dec 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add DRC (WiiU GamePad) support from Wii64 (FIX94, emukidid)
saulfabregwiivc authored Dec 17, 2021

Verified

This commit was signed with the committer’s verified signature.
casperdcl Casper da Costa-Luis
commit 6dddec70730433301ac14e1edf7a3119274d9cec
17 changes: 16 additions & 1 deletion main/main_gc-menu.c
Original file line number Diff line number Diff line change
@@ -95,6 +95,7 @@ extern timers Timers;
char creditsScrolling;
char padNeedScan;
char wpadNeedScan;
char drcNeedScan;
char shutdown;
char saveStateDevice;
char pakMode[4];
@@ -214,6 +215,20 @@ u16 readWPAD(void){
b |= (w & CLASSIC_CTRL_BUTTON_A) ? PAD_BUTTON_A : 0;
b |= (w & CLASSIC_CTRL_BUTTON_B) ? PAD_BUTTON_B : 0;
}

if(drcNeedScan){ WiiDRC_ScanPads(); drcNeedScan = 0; }
const WiiDRCData* drc = WiiDRC_Data();

if(WiiDRC_Inited() && WiiDRC_Connected())
{
u16 w = drc->button;
b |= (w & WIIDRC_BUTTON_UP) ? PAD_BUTTON_UP : 0;
b |= (w & WIIDRC_BUTTON_DOWN) ? PAD_BUTTON_DOWN : 0;
b |= (w & WIIDRC_BUTTON_LEFT) ? PAD_BUTTON_LEFT : 0;
b |= (w & WIIDRC_BUTTON_RIGHT) ? PAD_BUTTON_RIGHT : 0;
b |= (w & WIIDRC_BUTTON_A) ? PAD_BUTTON_A : 0;
b |= (w & WIIDRC_BUTTON_B) ? PAD_BUTTON_B : 0;
}

return b;
}
@@ -382,7 +397,7 @@ static void rsp_info_init(void){
}

void ScanPADSandReset() {
padNeedScan = wpadNeedScan = 1;
drcNeedScan = padNeedScan = wpadNeedScan = 1;
if(!((*(u32*)0xCC003000)>>16))
stop = 1;
}