02 February 2024, 07:43 | #41 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,225
|
I can have a look if you want... but not sure I can do anything if I can't reproduce the errors.
- Be careful not to read red button with any other routine (btst #7,$bfe001) - Make sure to read joypad only at start of vblank, not at any time, because of the potentiometer discharged blah blah I don't know shit about this I'm just a user |
02 February 2024, 07:56 | #42 | |
Registered User
Join Date: Sep 2019
Location: Sydney
Posts: 357
|
Quote:
1. I was using FFFF for POTGO_RESET instead of FF00 2. I was missing the line: or.b #$C0,ciapra(a1) ;reset port direction 3. Changed from 9 loops to 8 to skip the 'is it a CD32 pad' test. After a WaitVbl the first things I do is read keyboard, then joypad, so I don't think it is that. I await ross's game changing routine |
|
02 February 2024, 09:53 | #43 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,225
|
no problem. Hardest problem is not being able to test.
|
02 February 2024, 12:57 | #44 |
Registered User
Join Date: Sep 2021
Location: Katy, USA
Posts: 154
|
Hi Folks, I just wanted to thankyou to Muzza and Jotd for their kind assistance with this rather niche issue - the Amiga never stops being interesting! - Ive learned alot myself reading your correspondence on the matter and Im sorry we didnt arrive on a conclusion.
I have to confess Im still unsure as to what the difference is between my A4000 that struggles with the CD32 pad and those that dont - I can only assume there is either a difference in the way an IC is handling the input or that, somewhere en route, the signals are being changed in some way that makes interpretation of the input difficult? Either way, thanks to everyone that has contributed. For now, Ill be enjoying Jotd's work when I need to use those extra buttons! Thanks Mark |
02 February 2024, 16:56 | #45 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
Attached a preliminary test, it could definitely have bugs.
Just try joystick or joypad in both ports, even on-the-fly insertions. I'm really in a hurry so no further information until tonight EDIT: removed, old version Last edited by ross; 04 February 2024 at 21:10. |
02 February 2024, 18:07 | #46 |
Registered User
Join Date: Sep 2021
Location: Katy, USA
Posts: 154
|
Hey Ross, so I booted with the ADF on my 4000d - I get a coloured stripe across the screen. I see whats happening and all the buttons (R,G,B, Y, Shoulders(greys), Pause/Start (pink) and D-Pad) work on my CD32 joypad, in Port 1, with the associated colours on the screen changing state as I press them.
Port zero also works with the mouse as expected. |
02 February 2024, 18:59 | #47 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 820
|
I have several A4000 and many types of CD32 pads (and joysticks) if testing is needed.
|
02 February 2024, 20:02 | #48 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
Quote:
This would be great, thanks! |
|
02 February 2024, 21:17 | #49 |
Registered User
Join Date: Sep 2021
Location: Katy, USA
Posts: 154
|
Hi Ross, is there any chance of getting a version of this executable thats not an ADF?
|
02 February 2024, 23:01 | #50 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
Quote:
SPACE key to exit. When there is enough evidence that it works well in all conditions (adding any fixings), I will also release the source. Edit: removed the exe, new version below Last edited by ross; 03 February 2024 at 11:59. |
|
03 February 2024, 01:34 | #51 |
Registered User
Join Date: Sep 2021
Location: Katy, USA
Posts: 154
|
Hi Ross, tested on a CD32 that doesn't exhibit the fussy CD32 joypad detection and again all the buttons and controls work as expected.
As a side note, while SPACE to exit works in winUAE, neither my 4000 or the cd32 keyboard (via a TF330) will respond to the exit command. |
03 February 2024, 04:00 | #52 |
Registered User
Join Date: Sep 2019
Location: Sydney
Posts: 357
|
One thing it does not seem to support is 3 button joypads? Not super important but I know some people use Megadrive controllers, and I noticed the Shadow of the Best 3 code that jotd posted supports checking for a 3rd button.
I tested it in WinUAE using an Xbox controller set to 'Gamepad' mode instead of CD32 mode. This mode supports three buttons. |
03 February 2024, 09:17 | #53 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
Quote:
The keyboard routine is dumb and minimalist but it should work. I'll look into this Ok, I'll add the 3rd button, it should be simple. How is it normally wired? Exactly as the 2nd button on 'normal' Joystick? (i.e. Paula' driven internal pull-up and closed to GND) |
|
03 February 2024, 09:34 | #54 | |
-
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,864
|
Quote:
If it's a megadrive pad, the pad must first be modified to swap Vcc and select to the right pins, so that select can be toggled, and then you toggle select (which would be connected to potx) to make the pad output one of two sets of controls. https://www.raspberryfield.life/2019...bc-controller/ An unmodified megadrive pad connected to an Amiga will always be select high so that you can only get buttons B and C. |
|
03 February 2024, 11:56 | #55 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
Quote:
However, it is not entirely clear to me how that GamePad manages pull-ups (I have to read the article and not just look at the pictures..). EDIT: ok, found in the Arduino code: Code:
pinMode(stopPin, INPUT_PULLUP);//Note! Internal pull-up activated. EDIT2: removed the exe, new version below Last edited by ross; 04 February 2024 at 21:00. |
|
03 February 2024, 14:03 | #56 |
Registered User
Join Date: Sep 2021
Location: Katy, USA
Posts: 154
|
Hi, quick test and the space bar works fine. I dont have a mega drive pad, so can only say that the CD32 pad still works as tested previously.
|
03 February 2024, 14:14 | #57 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
Quote:
Maybe, or not , it will be fixed in the next version of WinUAE. -- In fact it would be interesting to find someone with a modified Sega Megadrive joypad cause this old thread: https://eab.abime.net/showthread.php?p=973843 The second button should now read properly, but I don't know about the third.. |
|
03 February 2024, 14:47 | #58 |
Registered User
Join Date: Sep 2021
Location: Katy, USA
Posts: 154
|
So dug around a bit and found a megadrive pad in a box. Plugged it in and tested it and two buttons work for me (B&C). The A button does not. This might be a consequence of the adapter I am using which is really only configurable for B & C or B & Jump (Up, mapped to C) - but as Jope mentioned this is just a stock sega controller without modifications.
Last edited by Lamaman71; 03 February 2024 at 18:33. |
03 February 2024, 14:51 | #59 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
Quote:
The third button only works if the pad is modified (as Jope said). |
|
04 February 2024, 17:29 | #60 |
Registered User
Join Date: Dec 2010
Location: Norway
Posts: 820
|
Just made a quick test so far. (On joy port with mouse in mouse port)
Competition pro CD32 pad works in 4000T and 4000D. (colors, all buttons register) So far, standard CD32 pad is only detected as cd32 pad in 4000D, not 4000T. (gray in 4000T) Last edited by fgh; 04 February 2024 at 17:43. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simon CD32 on a 2x cd Amiga 4000 | haymigga | support.Games | 7 | 23 October 2022 17:41 |
Amiga CD32 joypad | lambrettadave | support.Hardware | 12 | 06 August 2022 03:47 |
Amiga cd32 joypad triggers 3d model | moulder625 | support.Hardware | 0 | 13 June 2022 22:46 |
Joypad that's 100% compatible with CD32 Joypad? | ancalimon | Retrogaming General Discussion | 26 | 15 September 2015 08:49 |
Selling: Prototype CD32 adapter / Amiga 4000 broken | gehtjanx | MarketPlace | 10 | 26 July 2011 10:20 |
|
|