This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Stylus Move always when Stylus Down?


Stylus Move always when Stylus Down?

Postby Centaur » May 10, 2004 @ 9:42pm

Centaur
pm Member
 
Posts: 15
Joined: Aug 5, 2003 @ 2:52pm
Location: The Netherlands


Postby Johan » May 11, 2004 @ 4:28am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Centaur » May 11, 2004 @ 8:54am

Johan, that's exactly what I am doing.

But that's where/why my problem arise:
Because of the different order in which the stylus events are fired, on my stationary PC I do NOT get a StylusMove: because the StylusUp comes before the StylusMove, the stylus-down-flag has already be reset.

But on my ipaq (2210) the StylusMove directly follows the StylusDown, so the flag is still set and I receive/process a StylusMove (which I do not want if it is only a tap on the screen on one location).

The solution will probably be that I continuously register the coords in the StylusDown and StylusMove and check in the StylusMove if the new coords are really different from the registered ones. Only then I will consider this as a real StylusMove.

But what I don't understand is why a StylusMove is generated in the first place when I just tap on my PPC screen???
Centaur
pm Member
 
Posts: 15
Joined: Aug 5, 2003 @ 2:52pm
Location: The Netherlands


Postby ppcStudios » May 11, 2004 @ 1:04pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby Johan » May 11, 2004 @ 4:07pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Centaur » May 11, 2004 @ 9:25pm

Last edited by Centaur on May 12, 2004 @ 8:42am, edited 1 time in total.
Centaur
pm Member
 
Posts: 15
Joined: Aug 5, 2003 @ 2:52pm
Location: The Netherlands


Postby Centaur » May 11, 2004 @ 9:35pm

Centaur
pm Member
 
Posts: 15
Joined: Aug 5, 2003 @ 2:52pm
Location: The Netherlands


Postby fzammetti » May 11, 2004 @ 11:03pm

Note that on a stationary PC, you will get StylusMove messages whether you click or not. In other words, just moving the mouse around the app's window will result in StylusMove messages. Maybe this is the source of your confusion, at least as far as a stationary PC goes.

I know this because I just took the minimal sample and put MessageBox's in StylusMove, StylusDown and StylusUp. Sure enough, just moving the mouse over the window results in a boatlod of StylusMove's, but no StylusDown or StylusUp's, as you would expect, until I click.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby ppcStudios » May 11, 2004 @ 11:48pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby InexorableTash » May 12, 2004 @ 7:40am

User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Postby Centaur » May 12, 2004 @ 8:23am

ppcStudios: Unfortunately I am at work now, so I can't send or attach my project yet. I will do this tonight.
But the timing/flushing of buffers seems fine to me: just take a look at the timing info at the start of each line: they seem to be in the right order.

Thanx for the suggested solutions, I will implement these to get things working right again. I obvious have to change some things to get these events working the way I expect them (on all platforms).

Note that my main question remains why on the PocketPC the extra, not expected StylusMove event occurs when only tapping the screen.
But maybe it is what InexorableTash mentioned: Windows just throws all kinds of messages at you which and when you just don't expect it... :(
Centaur
pm Member
 
Posts: 15
Joined: Aug 5, 2003 @ 2:52pm
Location: The Netherlands


Postby ppcStudios » May 12, 2004 @ 1:30pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby ppcStudios » May 12, 2004 @ 1:36pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Postby Centaur » May 13, 2004 @ 8:04pm

Centaur
pm Member
 
Posts: 15
Joined: Aug 5, 2003 @ 2:52pm
Location: The Netherlands


Postby ppcStudios » May 13, 2004 @ 11:09pm

G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum