mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/glfwwin: remove unused functions
This commit is contained in:
parent
72f026e254
commit
96a44eceaf
@ -339,22 +339,6 @@ func (w *Window) SetCursorPos(xpos, ypos float64) error {
|
||||
}
|
||||
}
|
||||
|
||||
func CreateCursor(image *Image, xhot, yhot int) (*Cursor, error) {
|
||||
if !_glfw.initialized {
|
||||
return nil, NotInitialized
|
||||
}
|
||||
|
||||
cursor := &Cursor{}
|
||||
_glfw.cursors = append(_glfw.cursors, cursor)
|
||||
|
||||
if err := cursor.platformCreateCursor(image, xhot, yhot); err != nil {
|
||||
_ = cursor.Destroy()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return cursor, nil
|
||||
}
|
||||
|
||||
func CreateStandardCursor(shape StandardCursor) (*Cursor, error) {
|
||||
if !_glfw.initialized {
|
||||
return nil, NotInitialized
|
||||
|
@ -2216,15 +2216,6 @@ func platformGetKeyScancode(key Key) int {
|
||||
return _glfw.win32.scancodes[key]
|
||||
}
|
||||
|
||||
func (c *Cursor) platformCreateCursor(image *Image, xhot, yhot int) error {
|
||||
h, err := createIcon(image, xhot, yhot, false)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
c.win32.handle = _HCURSOR(h)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Cursor) platformCreateStandardCursor(shape StandardCursor) error {
|
||||
if microsoftgdk.IsXbox() {
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user