English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 02 February 2024, 07:43   #41
jotd
This cat is no more
 
jotd's Avatar
 
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
jotd is offline  
Old 02 February 2024, 07:56   #42
Muzza
Registered User
 
Muzza's Avatar
 
Join Date: Sep 2019
Location: Sydney
Posts: 357
Quote:
Originally Posted by jotd View Post
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
Thanks, but I posted my code, and you posted yours. There is not much else to it. All I've changed is:
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
Muzza is offline  
Old 02 February 2024, 09:53   #43
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,225
no problem. Hardest problem is not being able to test.
jotd is offline  
Old 02 February 2024, 12:57   #44
Lamaman71
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
Lamaman71 is offline  
Old 02 February 2024, 16:56   #45
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
Quote:
Originally Posted by Muzza View Post
I await ross's game changing routine
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.
ross is offline  
Old 02 February 2024, 18:07   #46
Lamaman71
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.
Lamaman71 is offline  
Old 02 February 2024, 18:59   #47
fgh
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.
fgh is offline  
Old 02 February 2024, 20:02   #48
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
Quote:
Originally Posted by Lamaman71 View Post
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.
Excellent news

Quote:
Originally Posted by fgh View Post
I have several A4000 and many types of CD32 pads (and joysticks) if testing is needed.
This would be great, thanks!
ross is offline  
Old 02 February 2024, 21:17   #49
Lamaman71
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?
Lamaman71 is offline  
Old 02 February 2024, 23:01   #50
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
Quote:
Originally Posted by Lamaman71 View Post
Hi Ross, is there any chance of getting a version of this executable thats not an ADF?
Sure (previously I had not yet added a clean exit code for an exe)
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.
ross is offline  
Old 03 February 2024, 01:34   #51
Lamaman71
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.
Lamaman71 is offline  
Old 03 February 2024, 04:00   #52
Muzza
Registered User
 
Muzza's Avatar
 
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.
Muzza is offline  
Old 03 February 2024, 09:17   #53
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
Quote:
Originally Posted by Lamaman71 View Post
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.
Interesting.
The keyboard routine is dumb and minimalist but it should work.
I'll look into this

Quote:
Originally Posted by Muzza View Post
One thing it does not seem to support is 3 button joypads?
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)
ross is offline  
Old 03 February 2024, 09:34   #54
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,864
Quote:
Originally Posted by ross View Post
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)
If it's like an Amiga mouse, then it's in the potx line.

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.
Jope is offline  
Old 03 February 2024, 11:56   #55
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
Quote:
Originally Posted by Jope View Post
If it's like an Amiga mouse, then it's in the potx line.

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.
Thanks
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.
Fixed the keyboard routine (maybe..) and added 3rd button (maybe..).

EDIT2: removed the exe, new version below

Last edited by ross; 04 February 2024 at 21:00.
ross is offline  
Old 03 February 2024, 14:03   #56
Lamaman71
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.
Lamaman71 is offline  
Old 03 February 2024, 14:14   #57
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
Quote:
Originally Posted by Lamaman71 View Post
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.
Thanks, we probably understood why the previous keyboard routine didn't actually work on real but on WuinUAE (my code did things not quite as supposed ).
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..
ross is offline  
Old 03 February 2024, 14:47   #58
Lamaman71
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.
Lamaman71 is offline  
Old 03 February 2024, 14:51   #59
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
Quote:
Originally Posted by Lamaman71 View Post
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 A & B or A & Jump (Up, mapped to B) - but as Jope mentioned this is just a stock sega controller without modifications.
This is fine, so the second button works as it should.
The third button only works if the pad is modified (as Jope said).
ross is offline  
Old 04 February 2024, 17:29   #60
fgh
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.
fgh is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:34.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11550 seconds with 13 queries