![]() |
|
|||||||
| Register | >> Amiga FAQ/Wiki << | Rules & Help | Members List / Moderators List | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
2ND button joystick on a real Amiga
I have rebuild a Logitech pad to work on my A1200
and I have added a 2nd button joystick (pin 9 + ground) but it does not works on all games it works perfect on Turrican 1 ,2 and 3, and on Rtype 1 & 2 but pin 9 + ground doesn't works on games like BCkid,Bubble & squeak,Aladdin and Lionheart and maybe others my question is this: what schematic for the 2nd button joystick is the genuine for all games? what should be added there? a resistor? a diode? |
|
|
|
|
|
#2 |
|
Zone Friend
Join Date: Jun 2006
Location: Gargore
Age: 32
Posts: 11,264
|
Are you sure these games have second button option?
|
|
|
|
|
|
#3 |
|
Moderator
Join Date: Sep 2006
Location: Germany
Age: 35
Posts: 22,470
|
Yes, all of them have a 2 button joystick setting in the options.
|
|
|
|
|
|
#4 |
|
is long gone
Join Date: Apr 2007
Location: London
Posts: 1,590
|
I know this sounds obvious - and is possibly stupid (too lazy to check the HRM at the moment and find out
) but my guess would be that the games that the second button doesn't work on don't perform the same check in their code for a press of that second button as the games that it does work on...Edit: To clarify, what I mean is: Is there only one standard defined signal that can come from the joyports that should be regarded as "second joytick button has been pressed" |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Sep 2006
Location: Germany
Age: 35
Posts: 22,470
|
Hmm, R-Type and Turrican just support the second button (no need to go to the options). I wonder if it's that simple...
![]() |
|
|
|
|
|
#6 |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
PMC,
you can't check on the code of that games how the 2nd button joystick works ************ and according to my A1200 manual page F-8: (Mouse/game controller ports) pin 9 is button 2 |
|
|
|
|
|
#7 |
|
HONEY
Join Date: Jun 2006
Location: south
Posts: 2,582
|
Ive had problems with both BcKid and Aladdin with a sega pad - these problems have gone away with latest Whd Slaves.
Last edited by Boo Boo; 19 November 2009 at 10:47. |
|
|
|
|
|
#8 |
|
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 38
Posts: 11,944
|
Some games forget to initialize POTGO register (Paula io-register) and only work under KS 1.x..
KS 1.x always enables both joystick port direction bits. KS 2.x+ only enables mouse port (right mouse button = 2nd firebutton) |
|
|
|
|
|
#9 |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
btw,
I think that some games were designed to work with the megadrive or mastersystem pad or maybe any other strange joystick or pad and that games not use the standart 'amiga 2nd button schem however Im sure that they make use of pin 9 thorugh a resistor or through a diode or any other way so....the point of this is.... find a way to make your own 2nd button schem that will work on all games Last edited by Fabie; 19 November 2009 at 11:02. |
|
|
|
|
|
#10 | |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
Quote:
so ....if I softkick Kicstart 1.3 on my A1200 using relokick or rekick and then run that games from floppy....2nd button will work? |
|
|
|
|
|
|
#11 |
|
HONEY
Join Date: Jun 2006
Location: south
Posts: 2,582
|
Aladdin was realy fucked up -
your not using WHDload? - Can you use WHDload? |
|
|
|
|
|
#12 | |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
Quote:
My A1200 is a rev 1.D1 and has a strange bug and Aladdin does not works from floppy back to the point,using whdload the 2nd button on Aladdin partially works,but there's a delay issue between you give up apples |
|
|
|
|
|
|
#13 |
|
HONEY
Join Date: Jun 2006
Location: south
Posts: 2,582
|
I guess if your using Aladdin slave 1.4+ then this is not a software issue.
|
|
|
|
|
|
#14 | |
|
Oldskool Demo Coder
|
Quote:
Second joystick button is a simple physical pin connection, so it's not easy to mess that up. Toni, does reset on those kickstarts actively set the wrong direction on softreset? If not, one could make a simple reset patch. I'm pretty sure I can use both firebuttons on kick 2.0 on my A500 - but let me check one of those games above. I wouldn't be surprised if it doesn't, I usually kickswitch into 1.3 or 1.2 when I know I want to play games/watch demos.
__________________
Henrik. Programs Amiga demos, iPhone apps, websites, etc. A1000/512k - A500 2.0/040@28/4M/.5M slowmem/8M/SCSI/CF - A600 portable II 3.1/ACA630/WiFi/CF - 'A1700' 3.1/68060@80/64M/IDE-Fix Express/CF - etc."The difference between PC and Amiga is that 10yo PCs are worth $0. 20yo Amigas are worth a lot, and Amigas that are only 15yo cost a fortune!" If you like Portal 2, try my >> single player and cooperation maps << |
|
|
|
|
|
|
#15 |
|
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 38
Posts: 11,944
|
At least 3.1+ always rewrites POTGO when it reads status of mouse buttons. (I guess this must have something to do with included CD32 pad support etc?)
AFAIK KS 1.x does it only once during reset. |
|
|
|
|
|
#16 | |
|
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: #pspuae chatroom
Age: 32
Posts: 2,314
|
maybe some of these game read CD32-Blue button instead of the normal 2nd button check? i cant be sure, but that might cause a few problems with some.
__________________
Quote:
|
|
|
|
|
|
|
#17 | |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
Quote:
they were made before CD32 release Im sure they look for C button of the megadrive Pad...however I haven't a megadrive pad so I can't confirm that |
|
|
|
|
|
|
#18 |
|
Missile Command Champion
Join Date: Aug 2005
Location: Germany
Age: 41
Posts: 8,378
|
Bubble & Squeak and Lionheart work indeed with a Sega Mega Drive C-button, but my Tecno Plus pad not.
|
|
|
|
|
|
#19 |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
|
|
|
|
|
|
#20 |
|
Missile Command Champion
Join Date: Aug 2005
Location: Germany
Age: 41
Posts: 8,378
|
BC Kid doesn't work with the MD pad, but with the Tecno Plus. Not sure about YoJoe, have to test it.
|
|
|
|
|
|
#21 | |
|
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: #pspuae chatroom
Age: 32
Posts: 2,314
|
this is the test i've always used for Button 2 in joyport 1, which is well known to work!
It's effectively checking the Right mouse button in the joystick port. Code:
btst.b #14,$DFF016 ; test second button (joy 1) bne .finish here is from Galahad's Alien 3 (i think?) whd slave, which "megadrive C" is tested. Code:
dc.l $0839000e ;btst #$e dc.l $dff016 bne.s not_megadrivec
__________________
Quote:
|
|
|
|
|
|
|
#22 | ||
|
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 38
Posts: 11,944
|
Quote:
!!NOTE!! some "non-standard" joysticks/pads/mice (some Amiga/Atari ST switchable mouse for example) can have pullup resistors in button lines and they will work when direction=input. This can cause confusion. Of course in this mode normal non-pullup firebuttons won't work.. Quote:
|
||
|
|
|
|
|
#23 | |
|
Missile Command Champion
Join Date: Aug 2005
Location: Germany
Age: 41
Posts: 8,378
|
Quote:
YoJoe: Works with both pads i have. ![]() Correction2: Now i've plugged the TP pad and then the MD pad again and it works fine with BC Kid. Strange, but true. ![]() Last edited by Retro-Nerd; 19 November 2009 at 21:06. |
|
|
|
|
|
|
#24 | |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
Quote:
it seems that some games were developed for many different pads? btw..2ND button joystick is really an issue on games on real Amiga and WINUAE YOJOE 2ND button works with with my pad but 2nd button doesn't works on WINUAE ![]() however BCKID 2nd button and Bubble & squeak works on WINUAE but not on my pad ![]() |
|
|
|
|
|
|
#25 |
|
Moderator
Join Date: Sep 2006
Location: Germany
Age: 35
Posts: 22,470
|
Hmm, the 2nd button works fine here in WinUAE without tweaking anything. Not sure why it doesn't for you.
|
|
|
|
|
|
#26 | ||
|
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: #pspuae chatroom
Age: 32
Posts: 2,314
|
Quote:
![]() to me a "bug" produces errors. this does not, it just (really) upsets a few purists!
__________________
Quote:
|
||
|
|
|
|
|
#27 |
|
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 4,547
|
|
|
|
|
|
|
#28 |
|
is long gone
Join Date: Apr 2007
Location: London
Posts: 1,590
|
@ Sting - Yes! \o/
I was only explaining this to someone the other day who sent me some code that had a btst #10 in it. btst is for BYTES!! Where's bit 10 in an 8 bit byte!? It's NOT THERE that's where! ![]() |
|
|
|
|
|
#29 | |
|
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: #pspuae chatroom
Age: 32
Posts: 2,314
|
each to their own. I however, am only really interested in the result, and i do get the result i want even with the incorrect code.
i must have learnt it from someone else who was also fond of such bad habits!
__________________
Quote:
|
|
|
|
|
|
|
#30 |
|
is long gone
Join Date: Apr 2007
Location: London
Posts: 1,590
|
Come on HH - why use bad habits? Soon or later your code will FAIL
![]() |
|
|
|
|
|
#31 | |
|
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: #pspuae chatroom
Age: 32
Posts: 2,314
|
my code fails all the time. (I am very new at asm) - I just correct what is needed to make it work
![]() i will correct this one in my current source, out of gratitude ![]()
__________________
Quote:
|
|
|
|
|
|
|
#32 | ||
|
is long gone
Join Date: Apr 2007
Location: London
Posts: 1,590
|
Quote:
Doesn't everyone's? Well, not Sting's obviously. ![]() Quote:
![]() |
||
|
|
|
|
|
#33 | |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
Quote:
but I will check Yojoe floppy version later |
|
|
|
|
|
|
#34 | ||
|
Moderator
Join Date: Sep 2006
Location: Germany
Age: 35
Posts: 22,470
|
Quote:
![]() From the WHDLoad readme : Quote:
|
||
|
|
|
|
|
#35 |
|
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 8,700
|
So, what's the difference between the signals generated by pressing a joystick's 2nd button that invokes no response and pressing some other joypad's button that is detected normally?
Would incorporating a buffer circuit similar to this one (with autofire disabled) into the errant joystick cure the problem when used with a real Amiga? |
|
|
|
|
|
#36 |
|
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
|
|
|
|
|
|
#37 |
|
Moderator
Join Date: Sep 2006
Location: Germany
Age: 35
Posts: 22,470
|
You're welcome
![]() |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Killing Game Show 2nd button support | Bamiga2002 | project.WHDLoad | 0 | 23 January 2008 16:06 |
| Amiga 2 Button Joystick to PC USB | Zetr0 | support.Hardware | 4 | 24 July 2007 12:47 |
| WinUAE doesn't detect joystick button (via ppjoy) | oldpx | support.WinUAE | 16 | 15 July 2004 22:42 |
| 2nd Fire Button | Doozy | support.WinUAE | 7 | 22 January 2002 19:21 |