Screen.RealToVirtualCoords

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
JPL
 
 
Posts: 523
Joined: Mon Apr 09, 2012 12:27 pm
Contact:

Screen.RealToVirtualCoords

Post by JPL »

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.

Return to “Feature Suggestions [GZDoom]”