UP and DOWN are reversed!

Discuss PocketC for Palm OS (including Desktop Edition)

Postby rayburn on Sat Feb 21, 2004 2:41 pm

hello,
I dont know if this is normal....or if it is a bug...

I am doing a program that moves a pixel across the screen (useless huh?).
this is how it works: if I press UP, int y will go up by 1, if I press DOWN, int y will go down by 1.

BUT when I press UP, y goes down by 1 and when I press DOWN, y goes up by 1!

Strange eh?
rayburn
 
Posts: 35
Joined: Tue Jul 08, 2003 9:40 pm
Location: Canada

Postby dewey on Sat Feb 21, 2004 5:25 pm

On the Palm OS (and most computer systems) the origin of the screen (0,0) is at the upper left. So, to make the dot go up, decrease y.
dewey
Site Admin
 
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am


Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 2 guests

cron