forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
400 B
18 lines
400 B
3 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"gioui.org/app"
|
||
|
"gioui.org/io/event"
|
||
|
)
|
||
|
|
||
|
// ProcessPlatformEvent handles platform-specific event processing. If it
|
||
|
// consumed the provided event, it returns true. In this case, no further
|
||
|
// event processing should occur.
|
||
|
func ProcessPlatformEvent(event event.Event) bool {
|
||
|
if ve, ok := event.(app.ViewEvent); ok {
|
||
|
buzzer.SetView(ve.View)
|
||
|
return true
|
||
|
}
|
||
|
return false
|
||
|
}
|