You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.
Hello, OCEmu dev's thanks for this program. I explain the issue below.
event=require"event"component=require"component"gpu=component.gpuscreen=component.screenscreen.setPrecise(false)
print(gpu.getResolution())
print(screen.isPrecise())
whiletruedo_, _, x, y=event.pull("touch")
print("click at " ..x..","..y)
end
The above code gives the gpu resolution to be 80, 25 yet when I click in the bottom right corner of the screen the following is printed "click at 160, 50" even after using screen.setPrecise(false). Changing it to screen.setPrecise(true) has no effect on the x, y values returned by event.pull("touch"). I've clicked on the bottom and top of the same 'pixel' and got +1 the value of the top of the pixel, which must mean that OCEmu constantly works as if screen's precise mode is on.
P.S. How can I change the max resolution of the emulator screen. I'd wish to be able to increase it to 160, 50 like a tier 3 screen. Especially since the emulator screen seems to have 'precise' touch event built in which is only a feature of the tier 3 screen.
Hope you can help!
The text was updated successfully, but these errors were encountered:
I have a similar problem. I'm bad at programming on lua. does not work this way on my machine please give me the full corrected document code screen_sdl2
Hello, OCEmu dev's thanks for this program. I explain the issue below.
The above code gives the gpu resolution to be 80, 25 yet when I click in the bottom right corner of the screen the following is printed "click at 160, 50" even after using
screen.setPrecise(false)
. Changing it toscreen.setPrecise(true)
has no effect on the x, y values returned byevent.pull("touch")
. I've clicked on the bottom and top of the same 'pixel' and got +1 the value of the top of the pixel, which must mean that OCEmu constantly works as if screen's precise mode is on.P.S. How can I change the max resolution of the emulator screen. I'd wish to be able to increase it to 160, 50 like a tier 3 screen. Especially since the emulator screen seems to have 'precise' touch event built in which is only a feature of the tier 3 screen.
Hope you can help!
The text was updated successfully, but these errors were encountered: