etk/keybind.go
2022-07-07 14:53:14 -07:00

15 lines
417 B
Go

package etk
import "github.com/hajimehoshi/ebiten/v2"
type Shortcuts struct {
ConfirmKeyboard []ebiten.Key
ConfirmMouse []ebiten.MouseButton
ConfirmGamepad []ebiten.GamepadButton
}
var Bindings = &Shortcuts{
ConfirmKeyboard: []ebiten.Key{ebiten.KeyEnter, ebiten.KeyKPEnter},
ConfirmMouse: []ebiten.MouseButton{ebiten.MouseButtonLeft},
ConfirmGamepad: []ebiten.GamepadButton{ebiten.GamepadButton0},
}