Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Contains = func(s []EventCategory, e EventCategory) bool { for _, a := range s { if a == e { return true } } return false }
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event interface { GetEventType() EventType GetName() string GetCategoryFlags() []EventCategory String() string IsInCategory(EventCategory) bool }
type EventCategory ¶
type EventCategory uint8
type EventDispatcher ¶
type EventDispatcher struct {
// contains filtered or unexported fields
}
func NewEventDispatcher ¶
func NewEventDispatcher(e *Eventum) *EventDispatcher
func (EventDispatcher) Dispatch ¶
func (ed EventDispatcher) Dispatch(fn EventFn) bool
type EventType ¶
type EventType int
const ( NoneType EventType = iota WindowClose WindowResize WindowFocus WindowLostFocus WindowMoved AppTick AppUpdate AppRender KeyPressed KeyReleased KeyTyped MouseButtonPressed MouseButtonReleased MouseMoved MouseScrolled NoneCategory = EventCategory(iota) EventCategoryApplication EventCategoryInput EventCategoryKeyboard EventCategoryMouse EventCategoryMouseButton )
Click to show internal directories.
Click to hide internal directories.