mirror of
https://github.com/mvvasilev/last_light.git
synced 2025-04-19 12:49:52 +03:00
22 lines
351 B
Go
22 lines
351 B
Go
package engine
|
|
|
|
import "github.com/gdamore/tcell/v2"
|
|
|
|
type Event interface {
|
|
}
|
|
|
|
type InputEvent struct {
|
|
tcellEvent *tcell.EventKey
|
|
}
|
|
|
|
func (e *InputEvent) TcellEvent() *tcell.EventKey {
|
|
return e.tcellEvent
|
|
}
|
|
|
|
type ResizeEvent struct {
|
|
tcellEvent *tcell.EventResize
|
|
}
|
|
|
|
func (e *ResizeEvent) TcellEvent() *tcell.EventResize {
|
|
return e.tcellEvent
|
|
}
|