mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/uidriver/glfw: Refactoring
This commit is contained in:
parent
88478fc80f
commit
d415e9c771
@ -306,7 +306,7 @@ func (i *Input) update(window *glfw.Window, context driver.UIContext) {
|
|||||||
s := i.ui.deviceScaleFactor()
|
s := i.ui.deviceScaleFactor()
|
||||||
cx = fromGLFWMonitorPixel(cx, s)
|
cx = fromGLFWMonitorPixel(cx, s)
|
||||||
cy = fromGLFWMonitorPixel(cy, s)
|
cy = fromGLFWMonitorPixel(cy, s)
|
||||||
cx, cy = context.AdjustPosition(cx, cy, i.ui.deviceScaleFactor())
|
cx, cy = context.AdjustPosition(cx, cy, s)
|
||||||
i.cursorX, i.cursorY = int(cx), int(cy)
|
i.cursorX, i.cursorY = int(cx), int(cy)
|
||||||
|
|
||||||
for id := glfw.Joystick(0); id < glfw.Joystick(len(i.gamepads)); id++ {
|
for id := glfw.Joystick(0); id < glfw.Joystick(len(i.gamepads)); id++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user