sound and brightenss

This commit is contained in:
cuu
2018-11-29 14:36:48 +08:00
parent b7ad646046
commit e45800dfe2
16 changed files with 819 additions and 3 deletions

View File

@@ -0,0 +1,40 @@
package main
/*
* need amixer
* `sudo apt-get install alsa-utils`
*/
import (
/*
"github.com/veandco/go-sdl2/ttf"
"github.com/cuu/gogame/surface"
"github.com/cuu/gogame/event"
"github.com/cuu/gogame/rect"
"github.com/cuu/gogame/color"
*/
"github.com/cuu/LauncherGo/sysgo/UI"
//"github.com/cuu/LauncherGo/sysgo/DBUS"
)
/******************************************************************************/
type SoundPlugin struct {
UI.Plugin
SoundPage *SoundPage
}
func (self *SoundPlugin) Init( main_screen *UI.MainScreen ) {
}
func (self *SoundPlugin) Run( main_screen *UI.MainScreen ) {
if main_screen != nil {
main_screen.PushCurPage()
main_screen.SetCurPage(self.SoundPage)
main_screen.Draw()
main_screen.SwapAndShow()
}
}
var APIOBJ SoundPlugin