Noah Petherbridge
b8665c8b8d
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.
28 lines
459 B
Go
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) {}
|