PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

iPaq uses different coordinates

I am a newbee at coding on ce-machines. While I made my first steps on my PocketPC I realized, that the Visual-Studio-Emulator shows my drawings correctly but the iPaq swaps the coordinates - y=x and x=y.
Can somebody explain this to me, please ? 8O
When you use the Game API, you gain low-level access to the display hardware. On some devices, such as the iPaq, the buffer is the actual physical address used by the display hardware. Thus the properties of the display are hardware specific, and are not wrapped up in a nice, neat package and contorted to standardize all the devices. Yes, the iPaq's display is actually on it's side, and the origin is the botton left just above the Calendar button. You must use the properties as exposed by GXGetDisplayProperties to properly utilize the screen buffer.

You can use one of the development SDKs, like Jacco's EasyCE (or the other 2 alternatives who also have forums hosted here at Pocket Matrix) to help standardize things somewhat, so the top-left of the display is x=0, y=0 as you desire.

Dan East
thanx for the fast reply !!! :lol:
What does this mean for the code? Swapping x- and y-axes seems not to be the solution.