Documentation ¶
Index ¶
- func EventLoopStart()
- func GetMouseMotion() (xDelta, yDelta int32)
- func GetMouseMotionNorm() (xDelta, yDelta int32)
- func GetMousePos() (x, y int32)
- func GetMouseWheelMotion() (xDelta, yDelta int32)
- func GetMouseWheelXNorm() int32
- func GetMouseWheelYNorm() int32
- func HandleKeyboardEvent(e *sdl.KeyboardEvent)
- func HandleMouseBtnEvent(e *sdl.MouseButtonEvent)
- func HandleMouseMotionEvent(e *sdl.MouseMotionEvent)
- func HandleMouseWheelEvent(e *sdl.MouseWheelEvent)
- func HandleQuitEvent(e *sdl.QuitEvent)
- func IsQuitClicked() bool
- 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 GetMouseWheelMotion ¶
func GetMouseWheelMotion() (xDelta, yDelta int32)
func GetMouseWheelXNorm ¶
func GetMouseWheelXNorm() int32
GetMouseWheelXNorm returns 1 if mouse wheel xDelta > 0, -1 if xDelta < 0, and 0 otherwise
func GetMouseWheelYNorm ¶
func GetMouseWheelYNorm() int32
returns 1 if mouse wheel yDelta > 0, -1 if yDelta < 0, and 0 otherwise
func HandleKeyboardEvent ¶
func HandleKeyboardEvent(e *sdl.KeyboardEvent)
func HandleMouseBtnEvent ¶
func HandleMouseBtnEvent(e *sdl.MouseButtonEvent)
func HandleMouseMotionEvent ¶
func HandleMouseMotionEvent(e *sdl.MouseMotionEvent)
func HandleMouseWheelEvent ¶
func HandleMouseWheelEvent(e *sdl.MouseWheelEvent)
func HandleQuitEvent ¶ added in v0.0.6
func IsQuitClicked ¶ added in v0.0.6
func IsQuitClicked() bool
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.