add SoundPatch

This commit is contained in:
cuu
2018-12-26 07:00:37 +00:00
parent 325d57ac23
commit 30149a8f24
7 changed files with 257 additions and 10 deletions

View File

@@ -25,6 +25,26 @@ import (
)
//eg: MainScreen
type ScreenInterface interface {
AppendPage( pg PageInterface )
ClearCanvas()
CurPage() PageInterface
Draw()
ExtraName(name string) string
FartherPages()
Init()
IsEmulatorPackage(dirname string ) bool
IsExecPackage(dirname string ) bool
IsPluginPackage(dirname string ) bool
KeyDown(ev *event.Event)
OnExitCb()
PushCurPage()
PushPage( pg PageInterface)
RunEXE( cmdpath string)
SetCurPage( pg PageInterface)
SwapAndShow()
}
type PluginConfig struct {
NAME string `json:"NAME"` // plugin name,default could be the same as Plugin Folder's name
@@ -359,7 +379,7 @@ func (self *MainScreen) KeyDown(ev *event.Event) {
if ev.Data["Key"] == "Space" {
self.Draw()
self.SwapAndShow()
}
}
self.CurrentPage.KeyDown(ev)
}