Hi, In Linz Oberon accessing/setting mouse pointer is done as pure assignment, e.g. Oberon.Pointer.X := m.x + x; y := Oberon.Pointer.Y; How can this be coded in PO2013, System V? Many thanks. -- Tomas Kral <thomas.kral@email.cz>
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Tomas Kral Sent: Wednesday, 21 November 2018 9:31 PM To: Oberon@lists.inf.ethz.ch Subject: [Oberon] PO2013 - Oberon mouse location
Hi,
In Linz Oberon accessing/setting mouse pointer is done as pure assignment, e.g.
Oberon.Pointer.X := m.x + x; y := Oberon.Pointer.Y;
How can this be coded in PO2013, System V?
Read section 9.2 Keyboard and Mouse in the Project Oberon 2013 documentation. That tells you how to read the x and y values. I haven't tried it but I guess you could reverse the process that Mouse performs if you want to set the x and y values: 1. Look for the procedure Mouse in Input.mod. 2. Refer to Fig 9.1. 'Format of the mouse register' to work out how to encode your x and y values into an integer (w, say) and then call SYSTEM.PUT(msAdr, w) where msAdr = -40. Regards, Chris Burrows CFB Software http://www.astrobe.com/RISC5
Hi Chris, Tomas,
2. Refer to Fig 9.1. 'Format of the mouse register' to work out how to encode your x and y values into an integer (w, say) and then call SYSTEM.PUT(msAdr, w) where msAdr = -40.
This wouldn't work as there is no hardware for the CPU to write to that register, it's maintained by the mouse interface hardware in response to mouse packets being received. Also I'd be concerned about using a user interface which moves the mouse, not very friendly and slightly creepy! :) Cheers, Paul
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Paul Reed Sent: Wednesday, 21 November 2018 10:13 PM To: ETH Oberon and related systems Subject: Re: [Oberon] PO2013 - Oberon mouse location
Hi Chris, Tomas,
2. Refer to Fig 9.1. 'Format of the mouse register' to work out how to encode your x and y values into an integer (w, say) and then call SYSTEM.PUT(msAdr, w) where msAdr = -40.
This wouldn't work as there is no hardware for the CPU to write to that register, it's maintained by the mouse interface hardware in response to mouse packets being received.
OK - thanks for the info.
Also I'd be concerned about using a user interface which moves the mouse, not very friendly and slightly creepy! :)
Reminds me of this useful tool ;-) http://lmgtfy.com/?q=Project%20Oberon%20mouse%20pointer Cheers, Chris
On Wed, 21 Nov 2018 at 12:53, Paul Reed <paulreed@paddedcell.com> wrote:
Also I'd be concerned about using a user interface which moves the mouse, not very friendly and slightly creepy! :)
One of the idiosyncrasies of RISC OS (former Acorn product, the original ARM OS) is that when it requires you to make a choice in a dialog box, rather than just making the dialog modal (i.e. so that you can't click on any other items on the screen), it constrains the mouse pointer to the dialog. So you can only move around within the dialog until you choose what to do. Simple and effective, but startling... -- Liam Proven - Profile: https://about.me/liamproven Email: lproven@cix.co.uk - Google Mail/Hangouts/Plus: lproven@gmail.com Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Liam Proven Sent: Wednesday, 21 November 2018 10:53 PM To: ETH Oberon and related systems Subject: Re: [Oberon] PO2013 - Oberon mouse location
On Wed, 21 Nov 2018 at 12:53, Paul Reed <paulreed@paddedcell.com> wrote:
Also I'd be concerned about using a user interface which moves the mouse, not very friendly and slightly creepy! :)
One of the idiosyncrasies of RISC OS (former Acorn product, the original ARM OS) is that when it requires you to make a choice in a dialog box, rather than just making the dialog modal (i.e. so that you can't click on any other items on the screen), it constrains the mouse pointer to the dialog. So you can only move around within the dialog until you choose what to do.
Simple and effective, but startling...
Interesting ... Another example of the system moving the mouse for you is the Windows (Additional) mouse option > Pointer Options > Snap To If you tick that checkbox, whenever a dialog box pops up, the mouse pointer automatically moves to the default button in the box.
Input.Mod (as is) is unfortunately not prepared to re-play neither keyboard strokes nor mouse movements. Re-play functionality would allow to remote-control the Oberon system. Implementing a hook in Input.Mod to do so would be possible.... br Jörg -----Original Message----- From: Oberon <oberon-bounces@lists.inf.ethz.ch> On Behalf Of Chris Burrows Sent: Wednesday, November 21, 2018 1:33 PM To: 'ETH Oberon and related systems' <oberon@lists.inf.ethz.ch> Subject: Re: [Oberon] PO2013 - Oberon mouse location
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Liam Proven Sent: Wednesday, 21 November 2018 10:53 PM To: ETH Oberon and related systems Subject: Re: [Oberon] PO2013 - Oberon mouse location
On Wed, 21 Nov 2018 at 12:53, Paul Reed <paulreed@paddedcell.com> wrote:
Also I'd be concerned about using a user interface which moves the mouse, not very friendly and slightly creepy! :)
One of the idiosyncrasies of RISC OS (former Acorn product, the original ARM OS) is that when it requires you to make a choice in a dialog box, rather than just making the dialog modal (i.e. so that you can't click on any other items on the screen), it constrains the mouse pointer to the dialog. So you can only move around within the dialog until you choose what to do.
Simple and effective, but startling...
Interesting ... Another example of the system moving the mouse for you is the Windows (Additional) mouse option > Pointer Options > Snap To If you tick that checkbox, whenever a dialog box pops up, the mouse pointer automatically moves to the default button in the box. -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Joerg:
Input.Mod (as is) is unfortunately not prepared to re-play neither keyboard strokes nor mouse movements. Re-play functionality would allow to remote-control the Oberon system. Implementing a hook in Input.Mod to do so would be possible....
A remote Oberon desktop would be very interesting. This would require a remote Display. How to approach it? I can see three problems: 1. Display is memory-mapped in local memory frame buffer which is tightly integrated both hardware and software-wise. How to move this to a remote computer? 2. Mouse is a low bandwidth peripheral. Graphics is high bandwidth. How to remap graphics to a remote machine w/o consuming a lot of bandwidth? 3. Security. Any thoughts? Wojtek
Hi With "remote-control" I was only thinking of some macro capabilities, so you can record mouse strokes and mouse and can replay them again later on. Your way of thinking is much broader. Typically, to not use to much bandwidth, only screen updates (not the full screen contents) are transmitted. And possibly even compressed. However this is not a "normal" functionality, the Oberon system offers out of the box. br Jörg -----Original Message----- From: Oberon <oberon-bounces@lists.inf.ethz.ch> On Behalf Of Skulski, Wojciech Sent: Wednesday, November 21, 2018 5:09 PM To: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Subject: Re: [Oberon] PO2013 - Oberon mouse location Joerg:
Input.Mod (as is) is unfortunately not prepared to re-play neither keyboard strokes nor mouse movements. Re-play functionality would allow to remote-control the Oberon system. Implementing a hook in Input.Mod to do so would be possible....
A remote Oberon desktop would be very interesting. This would require a remote Display. How to approach it? I can see three problems: 1. Display is memory-mapped in local memory frame buffer which is tightly integrated both hardware and software-wise. How to move this to a remote computer? 2. Mouse is a low bandwidth peripheral. Graphics is high bandwidth. How to remap graphics to a remote machine w/o consuming a lot of bandwidth? 3. Security. Any thoughts? Wojtek -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (6)
-
Chris Burrows -
Jörg -
Liam Proven -
Paul Reed -
Skulski, Wojciech -
Tomas Kral