USB4MAPLE adapter

Place for discussing homebrew games, development, new releases and emulation.
User avatar
megavolt85
Developer
Posts: 1976

Re: USB4MAPLE adapter

Post by megavolt85 »

kuja2053 wrote: Wed Jun 05, 2024 4:05 pm Idle state :
00 00 80 7F 7F 80
namco ps2 arcade stick have idle state
00 00 80 80 FF FF

i'm use latest two bytes FF FF for detect what is connected
may be first time adapter send latest two bytes FF FF?

User avatar
Vespa
undertow
Posts: 28

Re: USB4MAPLE adapter

Post by Vespa »

megavolt85 wrote: Thu Jun 06, 2024 9:33 am
Raphnet N64/Gamecube to USB adapter - V3
Finally got around to testing this, seems I did mess up somewhere:

N64 Controller:
-'Up' on the stick appears to be set to 'Down'
-'Down' on the stick appears to be set to 'Up' but will change to 'Down' when the stick moves past ~95% of the way towards the outer rim of the controller
-I should have asked for 'N64 Z trigger' to be set to 'DC L trigger' (not sure what I was thinking!)

Gamecube controller:
-'Up' on the stick appears to be set to 'Down'
-'Down' on the stick appears to be set to 'Up' but will change to 'Down' when the stick moves past ~95% of the way towards the outer rim of the controller
-'Right' on the stick registers as 'Left' on the stick when past ~95% of the way towards the outer rim of controller
-Is there possibly a way to get rumble working for this? @Sonik

What's the best way to get the sticks sorted, I can record a video of the values changing as I move the various sticks if that helps. Got to say it's cool to play something like Rayman 2 with the N64 pad!

raffraff
noob
Posts: 4

Re: USB4MAPLE adapter

Post by raffraff »

raffraff wrote: Thu Jun 06, 2024 1:24 pm
megavolt85 wrote: Fri May 17, 2024 1:01 pm
raffraff wrote: Fri May 17, 2024 10:43 am Would it be possible to have a mode on 360 controllers (etc) where the right analog stick is mapped to the d-pad?
I made the right stick duplicate the d-pad in standard mode
Thanks again for this. I've built two for simultaneous 360 controller and keyboard and they are working well.

Please could a small amount of dead zone be added to the right analog stick when mapped to the d-pad? This is just to improve the action as it's currently quite twitchy.
Further to this, I tried a PS3 controller today and the Y axis (up down) on the right analog stick (mapped to dpad) is inverted.

Thanks

kuja2053
shadow
Posts: 6

Re: USB4MAPLE adapter

Post by kuja2053 »

megavolt85 wrote: Sun Jun 09, 2024 11:14 am
kuja2053 wrote: Wed Jun 05, 2024 4:05 pm Idle state :
00 00 80 7F 7F 80
namco ps2 arcade stick have idle state
00 00 80 80 FF FF

i'm use latest two bytes FF FF for detect what is connected
may be first time adapter send latest two bytes FF FF?
Hi Megavolt85,

I'm sorry I'm only answering now, but I only have free time at weekends. I think your hypothesis is right. I did some more tests.

The Playstation Arcade Stick Namco has the same VID and PID as the dualshock 2. Concerning the Arcade Stick, the IDLE state is 00 00 80 80 ff ff and the last two bytes are not used.

For the dualshock 2, the IDLE state with analog disabled is also 00 00 80 80 FF FF. When analog is enabled, the last two bytes are used and FF FF disappears. The only exception: if you make a perfect down-right move with the right stick in analog mode.

One solution might be to treat both controllers as analog, but the problem is that in the case of the Arcade Stick, the Dreamcast would act as if a right stick were continuously in the down-right position.

As for the Dualshock 2, it automatically switches to analog after a few seconds in video games.

A functional possibility could be to use the Arcade Stick's behavior (digital) if, at boot time, the last two bytes are set to FF FF. And switch to the Dual Shock 2 (analog) if you run out of FF FF at the end. I don't know if this is possible with your FW ?

In the worst case, you'll have to choose between these two controllers and remove one I think.

sh4
shadow
Posts: 13

Re: USB4MAPLE adapter

Post by sh4 »

Finally put one of these together and can confirm a Logitech M171 wireless mouse works on XDP / Quake 3. Thanks to everyone esp Megavolt! Btw off white/grey version matches DC :)
Attachments
logi.jpg
logi.jpg (13.88 KiB) Viewed 433 times
"We should've listened to Sega’s weird fish....Now look where we are." -Anonymous-

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 7142
Dreamcast Games you play Online: All of them! I'm able to connect with dial-up or broadband.
Location: USA
Contact:

Re: USB4MAPLE adapter

Post by pcwzrd13 »

Had an idea @megavolt. How about mapping the "Share" button on the Xbox and PS4/PS5 controllers to the screenshot button combo for DreamShell (Start + A + B). Seems like that would be perfect. :)

Edit: Maybe press and hold the button to take a screenshot would be better. Just to avoid accidental button presses.
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

sh4
shadow
Posts: 13

Re: USB4MAPLE adapter

Post by sh4 »

It's great my mouse/keyboard works fine and all, but my official xbox 360 controller connected via official usb charger cable doesn't work...Question- can my xbox 360 controller only be connected via xbox 360 wireless adapter? Thanks.
"We should've listened to Sega’s weird fish....Now look where we are." -Anonymous-

User avatar
pcwzrd13
Seen Any Sailors?
Posts: 7142
Dreamcast Games you play Online: All of them! I'm able to connect with dial-up or broadband.
Location: USA
Contact:

Re: USB4MAPLE adapter

Post by pcwzrd13 »

sh4 wrote: Sat Jun 22, 2024 11:00 pm It's great my mouse/keyboard works fine and all, but my official xbox 360 controller connected via official usb charger cable doesn't work...Question- can my xbox 360 controller only be connected via xbox 360 wireless adapter?
Yes, the wireless 360 controller can only be used wirelessly. The cable is only for charging.
PSO Characters:
Teal'c - lvl 119 HUcast - GC# 11666
Alto - lvl 39 FOnewm - GC# 12964

YouTube Channel : Dreamcast Live

  • Similar Topics
    Replies
    Views
    Last post