Checkpoint

This commit is contained in:
maze authored and maze committed 2026-10-29 17:28:51 +01:00
1 parent 7b6db17870
commit 0295eb1ad2
125 files changed
+59376

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
package sdl
import "git.maze.io/go/harmon/input"
type keyboardInput struct {
//events chan *sdl.KeyboardEvent
events chan input.Event
}
func newKeyboardInput() *keyboardInput {
return &keyboardInput{
events: make(chan input.Event),
}
}
func (keyboardInput) Name() string {
return "keyboard"
}
func (k *keyboardInput) Events() (<-chan input.Event, error) {
return k.events, nil
}