Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddListener ¶
Adds a listener to a specific sdl event type
input.AddListener(sdl.MOUSEBUTTONDOWN, func(arg *sdl.Event) { event := (*arg).(*sdl.MouseButtonEvent) fmt.Println(event.Button) })
func GetMouseState ¶
func GetMouseState() uint32
Returns the current state of the mouse (which buttons are pressed)
func LockCursor ¶
func LockCursor()
func UnlockCursor ¶
func UnlockCursor()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.