Screen.RealToVirtualCoords
Moderator: GZDoom Developers
Screen.RealToVirtualCoords
My mod makes extensive use of the DTA_VirtualWidth/Height tags to draw UI stuff to a fixed size virtual screen. However, EventHandler.InputProcess's mouse handling only deals in Real coordinates, so to get the mouse's position in DTA_VirtualWidth scale (to tell if a UI button is being hovered, for example) I have to do some math that I can't quite seem to make work right for all resolutions (and different possible screen sizes within that resolution). Before trying to debug my home-grown version of this function I wanted to submit this feature suggestion because it seems like it would be generally very useful as part of the Screen API.
