19 November 2009, 20:41 | #21 |
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: .
Age: 43
Posts: 2,545
|
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 |
19 November 2009, 20:55 | #22 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
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:
|
||
19 November 2009, 20:55 | #23 | |
Missile Command Champion
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,457
|
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. |
|
19 November 2009, 21:08 | #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 |
|
19 November 2009, 21:28 | #25 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,980
|
|
19 November 2009, 21:29 | #26 | |
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: .
Age: 43
Posts: 2,545
|
Quote:
to me a "bug" produces errors. this does not, it just (really) upsets a few purists! |
|
19 November 2009, 21:34 | #27 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
|
19 November 2009, 21:37 | #28 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
@ 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! |
19 November 2009, 21:41 | #29 |
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: .
Age: 43
Posts: 2,545
|
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! |
19 November 2009, 21:44 | #30 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Come on HH - why use bad habits? Soon or later your code will FAIL
|
19 November 2009, 21:47 | #31 |
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: .
Age: 43
Posts: 2,545
|
|
19 November 2009, 22:05 | #32 | ||
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Quote:
Quote:
|
||
19 November 2009, 22:22 | #33 | |
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
Quote:
but I will check Yojoe floppy version later |
|
19 November 2009, 22:32 | #34 | ||
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,980
|
Quote:
From the WHDLoad readme : Quote:
|
||
19 November 2009, 22:35 | #35 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
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? |
20 November 2009, 12:00 | #36 |
Banned
Join Date: Apr 2009
Location: France
Posts: 478
|
|
20 November 2009, 12:02 | #37 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,980
|
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 |
2nd button support for Mean Arenas | rmcin329 | Games images which need to be WHDified | 0 | 17 June 2013 16:56 |
edit joy 2nd button ? | turrican3 | support.WinUAE | 4 | 15 November 2012 10:30 |
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 |
2nd Fire Button | Doozy | support.WinUAE | 7 | 22 January 2002 19:21 |
|
|