TwitchPlaysPokemon / tpp-core

Core re-write for TwitchPlaysPokemon, WIP, contributions welcome
MIT License
31 stars 10 forks source link

N3DS Offset/Scaled input mode reports wrong x/y coordinates to overlay #402

Open m4-used-rollout opened 7 months ago

m4-used-rollout commented 7 months ago

The n3dsoffset and n3dsscaled input modes adapt DS touchscreen coordinates to the 3DS touchscreen in order to make it easier to play DS games on a 3DS. If someone attempts to tap 120,120, it should be translated to 152,120 to hit the DS bottom screen when the 3DS is rendering it at native resolution in the top middle of the screen (n3dsoffset) or 150,150 to target where the same spot on the DS touchscreen when it is scaled to 3DS touchscreen size (n3dsscaled).

Bug: The input sent to the overlay uses the translated (3DS) coordinates instead of the original (DS) coordinates. This means the overlay's touch display will show a touch in the wrong location, as it's assumed the overlay's touch display will be using DS coordinates if we're doing this translation in the first place.