-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dreamconn: detect dreamconn+ with VID/PID. Send maple data as text.
Create DreamConn gamepad when detected. Send/receive maple data in ascii dump form. Simplify maple device creation. Issue #1305
- Loading branch information
1 parent
6c3d77b
commit b9fdd50
Showing
10 changed files
with
209 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,4 @@ | ||
#pragma once | ||
#include "types.h" | ||
|
||
static inline u32 maple_GetBusId(u32 addr) | ||
{ | ||
return addr >> 6; | ||
} | ||
|
||
u32 maple_GetPort(u32 addr); | ||
u32 maple_GetAttachedDevices(u32 bus); | ||
|
||
//device : 0 .. 4 -> subdevice , 5 -> main device :) | ||
static inline u32 maple_GetAddress(u32 bus, u32 port) | ||
{ | ||
u32 rv = bus << 6; | ||
rv |= 1 << port; | ||
|
||
return rv; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.