English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 16 April 2020, 10:13   #1
Keir
Registered User
 
Join Date: May 2011
Location: Cambridge
Posts: 682
Reading 2nd and 3rd mouse/pad buttons

I just had a bug report on Amiga Test Kit (https://github.com/keirf/Amiga-Stuff/issues/19) that middle mouse button is not working with a TOM+ adapter and one specific A1200 board:
1. Same TOM+ works with Test Kit on another A1200 board
2. TOM+ works with the bad board on WB and WHDLoad, apparently
3. TOM+ pin 5 doesn't work with TestKit on bad board in port1 or port2.

Now, my button handling is not really very complicated, but I do want to confirm I'm setting POTGO correctly. My understanding is that it is correct to set the appropriate nibble (for port 1 or port 2) to %1111, so that the pins are in "output mode" and pulled high. So that's what I do: I set POTGO to $FF00 during the mouse test (https://github.com/keirf/Amiga-Stuff...kit/joymouse.c).

This seems to agree with other information I've found, and also with a quick peek at Kickstart code and its execution. I would probably have left it there except I found one dissenting fragment in the WHDLoad history (http://www.whdload.de/docs/History.html):
"fix: potgo set to input mode now, fixes right mouse button problem with ArcherMcLeanPool and JimmyWhiteSnooker (Mr.Larmer)"

So I decided to ask here. Does anyone have any idea on what's going on here, and whether my POTGO setting is best practice?
Keir 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
Only 2 Buttons and D-Pad Work on CD32 Joypad fondpondforever support.Hardware 18 08 June 2023 00:08
reading CD32 buttons / detecting joystick type (and banging my head) jotd Coders. Asm / Hardware 4 03 April 2020 18:18
Map spare gamepad buttons to left/right mouse buttons (for skipping intros) dreamkatcha support.FS-UAE 6 02 February 2013 23:03
megadrive pad with autofire mod, use all 3 buttons rare_j Hardware mods 43 23 June 2009 13:57
2nd Mouse Support Towani support.Hardware 14 05 October 2003 14:45

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 09:59.

Top

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