doodle/pkg/native/engine_wasm.go
Noah Petherbridge b8665c8b8d TouchScreenMode Fix
Made some fixes to touchscreen control detection:

* TouchScreenMode is activated on the first SDL2 FingerDown
* TouchScreenMode deactivates after the last finger is removed, and a
  mouse event happens at least 5 ticks later.
2024-04-19 22:42:47 -07:00

28 lines
459 B
Go

//go:build js && wasm
// +build js,wasm
package native
import (
"errors"
"image"
"git.kirsle.net/go/render"
)
func TextToImage(e render.Engine, text render.Text) (image.Image, error) {
return nil, errors.New("not supported on WASM")
}
func CopyToClipboard(text string) error {
return errors.New("not supported on WASM")
}
func CountTextures(e render.Engine) string {
return "n/a"
}
func FreeTextures() {}
func MaximizeWindow(e render.Engine) {}