20 June 2021, 15:32 | #1 |
Registered User
Join Date: Oct 2019
Location: Eydelstedt / Germany
Age: 44
Posts: 114
|
Problem Joystick/Ports
Hi,
I want to use two Atari-7800 controllers with my amiga. In my game, i test bit 7 of $bfe001 for fire-button of port1, and bit 6 of $bfe001 for fire-button of port 2. But only the controller connected to port 1 is working correctly. On port 2, the fire-button will not be detected. Using a competition pro on port 2 is working without problems. Is there a difference in the two ports? Do i have to modify my A7800 controllers to be compatible with both ports? Greetings Christian |
04 August 2021, 20:08 | #2 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
|
It could be a hardware problem, but this is quickly tested in another two player game. (Plug in both joysticks and try to pinpoint a fault with a joystick or a port.)
Can you post code and tell us how often it's read and if system interrupts are on? You are testing the correct bits, so if it doesn't work something weird is going on. One weird things that could prevent a pin from working is if you set its direction to output. But you only have to set direction in a boot ROM, at all times when using the Amiga, no program has to set any of that stuff. Last edited by Photon; 04 August 2021 at 20:13. |
04 August 2021, 20:22 | #3 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,507
|
Sounds like usual input vs output mode problem.
Does it work if you set bit 7 of $bfe201? |
04 August 2021, 22:00 | #4 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
|
Toni found out the game loads from a dos disk and turns off OS, I think it's either timing or explicitly setting direction.
Maybe it's fixed already |
04 August 2021, 22:11 | #5 |
Registered User
Join Date: Aug 2010
Location: Italy
Posts: 787
|
Edit: nevermind, for some weird reason I ended up thinking of button 2.
Last edited by saimo; 04 August 2021 at 23:27. |
04 August 2021, 23:53 | #6 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
|
Yeah, after boot you don't have to do anything special, just read the inputs. and this is after boot, so it's something else I think.
|
05 August 2021, 00:02 | #7 |
Registered User
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,547
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Current limits of Amiga Joystick ports? | MrD | support.Hardware | 17 | 14 November 2019 10:33 |
Broken+5v supply on Amiga 2000 joystick ports | tomead | support.Hardware | 2 | 08 March 2018 20:08 |
Joystick problem in UAE | deagledan | support.OtherUAE | 16 | 09 October 2016 17:29 |
2 joystick problem | defrb | support.WinUAE | 5 | 20 October 2009 13:12 |
Ports-panel mouse/joystick selection | Borg_Number_One | support.WinUAE | 3 | 27 November 2008 10:25 |
|
|