17 lines
536 B
Go
17 lines
536 B
Go
package etk
|
|
|
|
import "github.com/hajimehoshi/ebiten/v2"
|
|
|
|
// Shortcuts represents a keyboard shortcut configuration.
|
|
type Shortcuts struct {
|
|
ConfirmKeyboard []ebiten.Key
|
|
ConfirmMouse []ebiten.MouseButton
|
|
ConfirmGamepad []ebiten.GamepadButton
|
|
}
|
|
|
|
// Bindings is the current keyboard shortcut configuration.
|
|
var Bindings = &Shortcuts{
|
|
ConfirmKeyboard: []ebiten.Key{ebiten.KeyEnter, ebiten.KeyKPEnter},
|
|
ConfirmMouse: []ebiten.MouseButton{ebiten.MouseButtonLeft},
|
|
ConfirmGamepad: []ebiten.GamepadButton{ebiten.GamepadButton0},
|
|
}
|