#156424 - Roland - Fri May 09, 2008 4:45 pm
Hello everyone,
It's me again :), I was peering into NDS lib code and I've found that the touchReadXY() function is implemented like this:
While it's clear what are .px and .py (and even the non filled members .z1 and .z2) I don't have a clear idea about .x and .y. Searching the forum I've found that those members are touch screen coordinates, each one 16 bit long... but nothing else. Since their values are very strange, can I ask you what they mean?
Thanx a lot again :).
It's me again :), I was peering into NDS lib code and I've found that the touchReadXY() function is implemented like this:
Code: |
touchPosition touchReadXY() { touchPosition touchPos; touchPos.x = IPC->touchX; touchPos.y = IPC->touchY; touchPos.px = IPC->touchXpx; touchPos.py = IPC->touchYpx; return touchPos; } |
While it's clear what are .px and .py (and even the non filled members .z1 and .z2) I don't have a clear idea about .x and .y. Searching the forum I've found that those members are touch screen coordinates, each one 16 bit long... but nothing else. Since their values are very strange, can I ask you what they mean?
Thanx a lot again :).