07 August 2016, 20:05 | #1 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,789
|
Read Mouse Port 1 possible?
Is there anyway to read the mouse in port 1?
|
07 August 2016, 20:17 | #2 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
i've just tested this example with Amos 1.36 in WinUAE-A1200 setup with mouse in port1:
Quote:
taken from ada.underground. |
|
07 August 2016, 20:38 | #3 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,188
|
That looks like it would only work with port 0.
|
07 August 2016, 20:43 | #4 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
07 August 2016, 21:09 | #5 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,789
|
hehe I always see this, I count 0 and 1 - strange my version of winuae also does but thanks for you reply
I only want to read the mouse clicks - to read two buttons without a extension if possible. |
07 August 2016, 21:40 | #6 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
is there some sort of peek command , so you may read from the register $DFF00A/$DFF00C/$BFE001 or
whatever the second mouse/joy port is? Last edited by emufan; 07 August 2016 at 21:47. Reason: all those custom registers :D |
07 August 2016, 22:18 | #7 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,789
|
I always thought there was a way with the existing commands but it doesnt look like there is.
|
08 August 2016, 23:12 | #8 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
i don't believe there is an AMOS command for this, you will have to do it the Hard Way, which isn't really all that hard tbh, except for reading the right mouse button, which is a bit of a trick.
In the hardware register names they are called 0 and 1. Because Computer. |
09 August 2016, 00:58 | #9 |
Phone Homer
Join Date: Jun 2006
Location: 5150
Posts: 5,789
|
im realy not sure how I would do this and it is the Right mouse button I would want to read - for some reason I had it in my mind from way back that you could read a two button pad like this but it must have been for port 0 only.
|
09 August 2016, 01:19 | #10 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,014
|
What programming language are you using?
|
09 August 2016, 01:30 | #11 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
we are in the deep waters of AMOS
"English Amiga Board > Coders > Coders. Language > Coders. AMOS > Read Mouse Port 1 possible?" btw. "AMOS could also include inline Assembly Language". so someone could write some asm lines which you can include ?! |
09 August 2016, 15:56 | #12 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,342
|
|
09 August 2016, 22:32 | #13 | |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
Quote:
|
|
09 August 2016, 23:44 | #14 | |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
ok, i understand - so far, that it is not possible
#1) but wait: just another article about AMOS and assembler: Quote:
Last edited by emufan; 10 August 2016 at 00:39. |
|
31 December 2016, 01:42 | #15 | ||
Wipe-Out Enthusiast
Join Date: Nov 2005
Location: .
Age: 43
Posts: 2,544
|
Quote:
http://www.ultimateamiga.co.uk/Hoste...l/14/1411.html Quote:
To answer the thread's intent, i would just use the AMCAF extension, as idrougge pointed to. I actually came here looking for a way to 'detect' mouse in either port. I'd like to implement in AMOS, but if it meant delving into the realm of in-line assembler code like mentioned above, i'd be willing to get to know it a bit better. |
||
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using PotGo on Mouse Port (Port 0)? | Daedalus | Coders. System | 14 | 02 March 2016 20:44 |
overscan and mouse settings option to be read from external file | _psy | project.WHDLoad | 5 | 15 April 2015 13:30 |
Direct serial port read/write | demolition | Coders. Asm / Hardware | 6 | 23 March 2013 03:59 |
A1200 mouse port | pinball_dreads | support.Hardware | 3 | 17 February 2005 18:31 |
amiga mouse port 1 | unregistered | support.WinUAE | 0 | 15 November 2002 22:28 |
|
|