From the quick test i had done with your implementation
int x = input_state_cb(0, RETRO_DEVICE_POINTER, 0, RETRO_DEVICE_ID_POINTER_X);
int y = input_state_cb(0, RETRO_DEVICE_POINTER, 0, RETRO_DEVICE_ID_POINTER_Y);
it report coordinate for x form [0,854] y from [0,480] .
it working fine and report correct physical size.
so to get virtual screen coordinate i use:
int px=(int)((float)retro.width/854.0*(float)p_x);
int py=(int)((float)retro.height/480.0*(float)p_y);
I quickly implement this in vice to see if i can move mouse with touch in virtua lkeyboard or in vice gui
it works fine the mouse respond to finger move.
the only problem i had is to query RETRO_DEVICE_ID_POINTER_PRESSED
mouse_l=input_state_cb(0, RETRO_DEVICE_POINTER, 0,RETRO_DEVICE_ID_POINTER_PRESSED);
it seem to never be true .
This is amazing, you wont believe how long I've wanted to see this in WiiU Retroarch
Can this also be implemented into the other Computer Cores? now that it works for your Vice Core?
Thank You - Thank You - Thank You
Last edited by ploggy,