libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
9.97k stars 1.84k forks source link

Hint to report out-of-bounds touch coordinates #8494

Closed NyakoFox closed 5 months ago

NyakoFox commented 1 year ago

While working on touch controls for VVVVVV, I noticed that finger positions get clamped to the viewport. This is unwanted for us as 4:3 (VVVVVV's aspect ratio) is pretty small for touch controls, and we'd like to use all of the out-of-bounds space as well. A hint to unclamp the finger positions would be nice, as I could see other games/programs wanting this functionality as well.

slouken commented 1 year ago

Yes, this seems like a good idea. Feel free to create a PR for it, if you have time.

NyakoFox commented 1 year ago

Actually, was this clamping removed in dcd17f547324a143d66d79e3b586577a7da558ed? I can't find code responsible for the clamping after this commit.