tmb@davinci.acc.Virginia.EDU (Thomas M. Breeden) (01/15/90)
I am trying to use AmigaDOS I/O (as described in the Appendix, "Console Input and Output on the Amiga" of the AmigaDOS manual) to mouse select button presses and the pointer position at button press. Writing the SRE, Set Raw Events, Amiga specific CSI sequence for request 2, RAW mouse input, and 4, Pointer position, looks like it should do it. I do get back the mouse button down and up response sequences, but the <x>,<y> values are almost always "0;0;". Clicking and moving as fast as possible will sometimes result in a small positive or negative <x> or <y> value, as if it were relative to the position 0.1 sec before. Is there something more I need to do to get the <x>,<y> positions to be the window position of the pointer, or is this part of the implementation that did not make it off the paper? Thanks for any help. Tom Breeden tmb@Virginia.EDU -> Internet tmb@Virginia -> Bitnet
kodiak@amiga.UUCP (Robert R. Burns) (01/16/90)
In article ... (Thomas M. Breeden) writes: )Writing the SRE, Set Raw Events, Amiga specific CSI sequence for request )2, RAW mouse input, and 4, Pointer position ... ) )<x>,<y> values are almost always "0;0;". Clicking and moving as fast as )possible will sometimes result in a small positive or negative <x> or <y> )value, as if it were relative to the position 0.1 sec before. The RAWMOUSE events that you're getting here are from the gameport device, the movement-only events are filtered by intuition, but the button events may still contain some recent relative [see the MSB of the ie_Qualifier] mouse movement. )Is there something more I need to do to get the <x>,<y> positions ... You need to look in the window->MouseX and window->MouseY. - Kodiak -- Bob Burns, amiga!kodiak _ | /_ _|. _ | Commodore __ |_) _ |_ _ )' |<(_)(_)|(_\|< /\ | ||| _` /\ |_)(_\| )(_\ | | \ Software ___/..\|\/|||__|/..\___ Faith