mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/uidriver/js: Add an error message when pointerlockerror happens
Updates #1604
This commit is contained in:
parent
18ce150495
commit
191cc667e1
@ -396,6 +396,10 @@ func init() {
|
||||
theUI.input.recoverCursorPosition()
|
||||
return nil
|
||||
}))
|
||||
document.Call("addEventListener", "pointerlockerror", js.FuncOf(func(this js.Value, args []js.Value) interface{} {
|
||||
js.Global().Get("console").Call("error", "pointerlockerror event is fired. 'sandbox=\"allow-pointer-lock\"' might be required.")
|
||||
return nil
|
||||
}))
|
||||
}
|
||||
|
||||
func setWindowEventHandlers(v js.Value) {
|
||||
|
Loading…
Reference in New Issue
Block a user