That is probably what I will implement if I can't find something better, but I think the design folks will not like it since it will require the user to move the joystick in the opposite direction to stop the map from panning endlessly.
I am beginning to fear that I will have to push the cursor functionality on the back-end application itself, where they can hopefully get lower level access to the mouse/cursor/joystick driver Tracy Spratt, Lariat Services, development services available _____ From: [email protected] [mailto:[email protected]] On Behalf Of valdhor Sent: Wednesday, July 29, 2009 8:30 AM To: [email protected] Subject: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen Just throwing out an idea ;-} How about just keep on panning in the same direction when mouse move events stop (Maybe check the mouse X/Y position and do this if it's at the edge of the screen). When the user moves the mouse back into the screen bounds, you will start getting events again and can respond appropriately. --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, "Tracy Spratt" <tr...@...> wrote: > > I have tested with a joystick and it behaves the same as moving the mouse > with no button pressed, and events stop at the screen boundaries. > > > > Tracy Spratt, > > Lariat Services, development services available > > _____ > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com] On > Behalf Of Pedro Sena > Sent: Tuesday, July 28, 2009 6:51 PM > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > Subject: Re: [flexcoders] AIR app, need MouseMove events NOT bounded by > screen > > > > > > Hi Tracy, > > The joystick will not trigger events like the keyboard arrows? I would > expect it from a joystick > > Regards > > On Tue, Jul 28, 2009 at 7:16 PM, Tracy Spratt <tr...@nts3rd. > <mailto:tr...@...> com> wrote: > > > > This AIR app is to be embedded in a consumer electronics product. It is a > transparent UI that indirectly controls an underlying map application by > sending messages via sockets. > > The product actually has a joystick and not a mouse and one requirement is > that moving the joystick will cause the map to pan. > > In development, using a real mouse, when the mouse pointer hits a screen > boundary, MouseMove events are no longer dispatched in that direction. In a > corner, all events cease. This is causing me problems with continuing to > send messages to the application to continue panning. > > I am hoping the joystick will behave differently, but am also looking for > any other suggestions. I have considered using a timer to send repeated > increments (the back-end app only needs position deltas), but I haven't > figured out how to stop that. > > As far as I can tell, there is no way to set the position of the system > cursor. If I could reset the mouse x,y to some positive values when it > approached an edge, that would work as well. > > Is there anyway I can get "deeper" into the mouse event? If I could get a > generic "moving" event, that would also suffice. > > Any thoughts? > > Tracy Spratt > > > > > -- > /** > * Pedro Sena > * Systems Architect > * Sun Certified Java Programmer > * Sun Certified Web Component Developer > */ >

