- Joined
- Apr 19, 2015
- Messages
- 1,023
- Trophies
- 1
- Location
- Stuck in the PowerPC
- Website
- heyquark.com
- XP
- 3,913
- Country
But (yes I have a but) it seem the new system based on the video_driver_get_viewport_info have some counterpart .
it seem not all the physical screen respond to touch.
it make sense if the viewport is lower of the physical screen but it also seem to be clamp to the left top corner.
I 'm sure that your code is good scaleTP(vp.x, vp.x + vp.width, -0x7fff, 0x7fff, cal.x);
but in core side , unfortunately I can't guess (I presume)
the viewport x/y then I can only deal with core screenx/screeny and [-0x7FFF,0x7FFF].
and then [-0x7FFF,-0x7FFF] always mean the left corner for me
I don't know how handle this properly.
I'm not sure I get the problem. If you have a look at the API headers:
Code:
* The frontend is free to scale/resize this screen as it sees fit, however,
* (X, Y) = (-0x7fff, -0x7fff) will correspond to the top-left pixel of the
* game image, etc.