View Single Post
Old 02 August 2017, 23:32   #41
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,164
Toni, in a previous message you answered to

Quote:
what could explain that some games work OK with the joystick, but when you plug in a CD32 joypad, red button is not recognized? (ex: Moktar, and another one I don't remember)
by

Quote:
I guess they have 3rd button line active forcing pad in CD32 pad mode.
I can't imagine they're doing that on purpose (this isn't even a 2-button compatible game). And how to reset that? (I have another issue in another slave, I figured that I could reuse Asman/others ReadJoyPad code bits to do:

Code:
	moveq	#CIAB_GAMEPORT1,d3	; red button ( port 1 )
	bset	d3,ciaddra(a1)	;set bit to out at ciapra
	bclr	d3,ciapra(a1)	;clr bit to in at ciapra
before reading the button and

Code:
	bclr	d3,ciaddra(a1)		;set bit to in at ciapra		
	or.b	#$C0,ciapra(a1)	;reset port direction
afterwards. Would that be OK? and the bugs reported by many users about this damn red/fire button not registering on CD32 don't happen in WinUAE. Is that normal? I'd very much like this "feature" implemented so I could debug a lot of those issues...
jotd is online now  
 
Page generated in 0.09115 seconds with 11 queries