diddy icon indicating copy to clipboard operation
diddy copied to clipboard

MouseX() and MouseY() gets rescaled but not TouchX(i), TouchY(i)

Open philippeback opened this issue 10 years ago • 0 comments

I noticed that the rescale of MouseX() and MouseY() occured in framework.monkey (ReadInputs) but TouchX(i) and TouchY(i) are read in inputcache.monkey and stored as-is.

' get the location of each touch
            touchX[i] = TouchX(i)
            touchY[i] = TouchY(i)

How would you suggest to have TouchX(i) and TouchY(i) neatly rescaled?

I use this config:

Self.inputCache.MonitorNothing()
Self.inputCache.MonitorTouch(True)

And a smaller window in Glfw (and a touch screen), so that I can see code and game.

philippeback avatar Dec 24 '15 00:12 philippeback