mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/uidriver/glfw: Refactoring: Remove unused functions
This commit is contained in:
parent
4604a00e39
commit
0eb6c846c7
@ -1441,18 +1441,6 @@ func (u *UserInterface) ResetForFrame() {
|
||||
u.m.Unlock()
|
||||
}
|
||||
|
||||
func (u *UserInterface) MonitorPosition() (int, int) {
|
||||
if !u.isRunning() {
|
||||
return u.monitorPosition()
|
||||
}
|
||||
var mx, my int
|
||||
_ = u.t.Call(func() error {
|
||||
mx, my = u.monitorPosition()
|
||||
return nil
|
||||
})
|
||||
return mx, my
|
||||
}
|
||||
|
||||
func (u *UserInterface) SetInitFocused(focused bool) {
|
||||
if u.isRunning() {
|
||||
panic("ui: SetInitFocused must be called before the main loop")
|
||||
@ -1460,11 +1448,6 @@ func (u *UserInterface) SetInitFocused(focused bool) {
|
||||
u.setInitFocused(focused)
|
||||
}
|
||||
|
||||
func (u *UserInterface) monitorPosition() (int, int) {
|
||||
// TODO: dipFromGLFWMonitorPixel might be required.
|
||||
return u.currentMonitor().GetPos()
|
||||
}
|
||||
|
||||
func (u *UserInterface) Input() driver.Input {
|
||||
return &u.input
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user