mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-21 19:32:38 +01:00
add Caller in keyboard ,add OnKdbReturnBackCb on Page interface
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package UI
|
||||
|
||||
import (
|
||||
|
||||
//"fmt"
|
||||
"github.com/veandco/go-sdl2/ttf"
|
||||
|
||||
// "github.com/cuu/gogame/surface"
|
||||
@@ -144,7 +144,7 @@ func (self *ConfirmPage) Init() {
|
||||
|
||||
|
||||
func (self *ConfirmPage) KeyDown( ev *event.Event ) {
|
||||
|
||||
|
||||
if ev.Data["Key"] == CurKeys["A"] || ev.Data["Key"] == CurKeys["Menu"] {
|
||||
self.ReturnToUpLevelPage()
|
||||
self.Screen.Draw()
|
||||
|
||||
Reference in New Issue
Block a user