Documentation
¶
Index ¶
- func EventLoopStart()
- func GetMouseMotion() (xDelta, yDelta int32)
- func GetMouseMotionNorm() (xDelta, yDelta int32)
- func GetMousePos() (x, y int32)
- func HandleKeyboardEvent(e *sdl.KeyboardEvent)
- func HandleMouseEvent(e *sdl.MouseButtonEvent)
- func HandleMouseMotion(e *sdl.MouseMotionEvent)
- func KeyClicked(kc sdl.Keycode) bool
- func KeyDown(kc sdl.Keycode) bool
- func KeyReleased(kc sdl.Keycode) bool
- func KeyUp(kc sdl.Keycode) bool
- func MouseClicked(mb int) bool
- func MouseDoubleClicked(mb int) bool
- func MouseDown(mb int) bool
- func MouseReleased(mb int) bool
- func MouseUp(mb int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventLoopStart ¶
func EventLoopStart()
func GetMouseMotion ¶
func GetMouseMotion() (xDelta, yDelta int32)
GetMouseMotion returns how many pixels were moved last frame
func GetMouseMotionNorm ¶
func GetMouseMotionNorm() (xDelta, yDelta int32)
func GetMousePos ¶
func GetMousePos() (x, y int32)
GetMousePos returns the window coordinates of the mouse
func HandleKeyboardEvent ¶
func HandleKeyboardEvent(e *sdl.KeyboardEvent)
func HandleMouseEvent ¶
func HandleMouseEvent(e *sdl.MouseButtonEvent)
func HandleMouseMotion ¶
func HandleMouseMotion(e *sdl.MouseMotionEvent)
func KeyClicked ¶
func KeyReleased ¶
func MouseClicked ¶
func MouseDoubleClicked ¶
func MouseReleased ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.