Great job , The press state report nicely now !
and the value is clamp from -0x7FFF to 0x7FFF which is great as it conform to the norm!
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.
--------------------- MERGED ---------------------------
Oh I forgot about this Fucking Shader!
I finally manage to get
(GX2UniformVar){ "unf_blur_texture_direction", GX2_VAR_TYPE_VEC3, 1, blurLocation, 0xffffffff });
(GX2UniformVar){ "unf_color_intensity", GX2_VAR_TYPE_VEC4, 1, colorIntensityLocation, 0xffffffff });
from the pixel shader of the texture2Dshader
https://github.com/Maschell/libgui/blob/master/source/video/shaders/Texture2DShader.cpp
to be working with RetroArch.
Then I can finally have the Overlay Alpha working
https://filebin.net/tkmawycqi8bm7c73/scummvm_libretro.rpx.zip
Code:
scummvm core (overlay+touch support WIP and maybe buggy) with engines:
ENABLE_AGI ENABLE_AGOS ENABLE_AGOS2 ENABLE_CINE ENABLE_CRUISE ENABLE_DRACI ENABLE_DRASCULA ENABLE_EOB ENABLE_GOB ENABLE_GROOVIE ENABLE_GROOVIE2 ENABLE_HE ENABLE_IHNM ENABLE_KYRA ENABLE_LOL ENABLE_LURE ENABLE_MADE ENABLE_MORTEVIELLE ENABLE_PARALLACTION ENABLE_QUEEN ENABLE_SAGA ENABLE_SAGA2 ENABLE_SCI ENABLE_SCI32 ENABLE_SCUMM ENABLE_SCUMM_7_8 ENABLE_SHERLOCK ENABLE_SKY ENABLE_SWORD1 ENABLE_SWORD2 ENABLE_TEENAGENT ENABLE_TINSEL ENABLE_TOUCHE ENABLE_TUCKER