Documentation ¶
Index ¶
- Constants
- func AudioInit(driverName string) int
- func AudioQuit()
- func Btoi(b bool) int
- func BuildAudioCVT(cvt *AudioCVT, srcFormat AudioFormat, srcChannels uint8, srcRate int, ...) int
- func Button(flag uint32) uint32
- func ButtonLMask() uint32
- func ButtonMMask() uint32
- func ButtonRMask() uint32
- func ButtonX1Mask() uint32
- func ButtonX2Mask() uint32
- func COMPILEDVERSION() int
- func ClearError()
- func ClearHints()
- func CloseAudio()
- func CloseAudioDevice(dev AudioDeviceID)
- func ConvertAudio(cvt *AudioCVT) int
- func ConvertPixels(width, height int, srcFormat uint32, src unsafe.Pointer, srcPitch int, ...) int
- func CreateWindowAndRenderer(w, h int, flags uint32) (*Window, *Renderer)
- func Delay(ms uint32)
- func DisableScreenSaver()
- func EnableScreenSaver()
- func EnclosePoints(points []Point, clip, result *Rect) bool
- func Error(code ErrorCode)
- func EventState(type_ uint32, state int) uint8
- func FlushEvent(type_ uint32)
- func FlushEvents(minType, maxType uint32)
- func FreeCursor(cursor *Cursor)
- func FreeWAV(audioBuf *uint8)
- func GL_DeleteContext(context GLContext)
- func GL_ExtensionSupported(extension string) bool
- func GL_GetAttribute(attr GLattr) (value int, status int)
- func GL_GetProcAddress(proc string) unsafe.Pointer
- func GL_GetSwapInterval() int
- func GL_LoadLibrary(path string) int
- func GL_MakeCurrent(window *Window, glcontext GLContext) int
- func GL_SetAttribute(attr GLattr, value int) int
- func GL_SetSwapInterval(interval int) int
- func GL_SwapWindow(window *Window)
- func GL_UnloadLibrary()
- func GameControllerAddMapping(mappingString string) int
- func GameControllerEventState(state int) int
- func GameControllerGetStringForAxis(axis GameControllerAxis) string
- func GameControllerGetStringForButton(btn GameControllerButton) string
- func GameControllerMapping(ctrl *GameController) string
- func GameControllerMappingForGUID(guid JoystickGUID) string
- func GameControllerNameForIndex(index int) string
- func GameControllerUpdate()
- func GetAudioDeviceName(index, isCapture int) string
- func GetAudioDriver(index int) string
- func GetBasePath() string
- func GetCPUCacheLineSize() int
- func GetCPUCount() int
- func GetClipboardText() string
- func GetCurrentAudioDriver() string
- func GetCurrentDisplayMode(displayIndex int, mode *DisplayMode) int
- func GetCurrentVideoDriver() string
- func GetDesktopDisplayMode(displayIndex int, mode *DisplayMode) int
- func GetDisplayBounds(displayIndex int, rect *Rect) int
- func GetDisplayMode(displayIndex int, modeIndex int, mode *DisplayMode) int
- func GetError() error
- func GetEventState(type_ uint32) uint8
- func GetHint(name string) string
- func GetKeyName(code Keycode) string
- func GetKeyboardState() []uint8
- func GetMouseState() (x, y int, state uint32)
- func GetNumAudioDevices(isCapture int) int
- func GetNumAudioDrivers() int
- func GetNumDisplayModes(displayIndex int) int
- func GetNumRenderDrivers() int
- func GetNumTouchDevices() int
- func GetNumTouchFingers(t TouchID) int
- func GetNumVideoDisplays() int
- func GetNumVideoDrivers() int
- func GetPerformanceCounter() uint64
- func GetPerformanceFrequency() uint64
- func GetPlatform() string
- func GetPowerInfo() (int, int, int)
- func GetPrefPath(org, app string) string
- func GetRelativeMouseMode() bool
- func GetRelativeMouseState() (x, y int, state uint32)
- func GetRenderDriverInfo(index int, info *RendererInfo) int
- func GetRevision() string
- func GetRevisionNumber() int
- func GetScancodeName(code Scancode) string
- func GetSystemRAM() int
- func GetTicks() uint32
- func GetVersion(v *Version)
- func GetVideoDriver(index int) string
- func HapticIndex(h *Haptic) int
- func HapticName(index int) string
- func HapticOpened(index int) int
- func Has3DNow() bool
- func HasAVX() bool
- func HasAltiVec() bool
- func HasClipboardText() bool
- func HasEvent(type_ uint32) bool
- func HasEvents(minType, maxType uint32) bool
- func HasMMX() bool
- func HasRDTSC() bool
- func HasSSE() bool
- func HasSSE2() bool
- func HasSSE3() bool
- func HasSSE41() bool
- func HasSSE42() bool
- func HasScreenKeyboardSupport() bool
- func Init(flags uint32) int
- func InitSubSystem(flags uint32) int
- func IsGameController(index int) bool
- func IsScreenKeyboardShown(window *Window) bool
- func IsScreenSaverEnabled() bool
- func IsTextInputActive() bool
- func JoystickEventState(state int) int
- func JoystickGetGUIDString(guid JoystickGUID, pszGUID string, cbGUID int)
- func JoystickIsHaptic(joy *Joystick) int
- func JoystickNameForIndex(index int) string
- func LoadDollarTemplates(t TouchID, src *RWops) int
- func LoadFunction(handle unsafe.Pointer, name string) unsafe.Pointer
- func LoadObject(sofile string) unsafe.Pointer
- func LockAudio()
- func LockAudioDevice(dev AudioDeviceID)
- func Log(str string, args ...interface{})
- func LogCritical(cat int, str string, args ...interface{})
- func LogDebug(cat int, str string, args ...interface{})
- func LogError(cat int, str string, args ...interface{})
- func LogInfo(cat int, str string, args ...interface{})
- func LogMessage(cat int, pri LogPriority, str string, args ...interface{})
- func LogResetPriorities()
- func LogSetAllPriority(p LogPriority)
- func LogSetOutputFunction(f LogOutputFunction, data interface{})
- func LogSetPriority(category int, p LogPriority)
- func LogVerbose(cat int, str string, args ...interface{})
- func LogWarn(cat int, str string, args ...interface{})
- func MixAudio(dst, src *uint8, len_ uint32, volume int)
- func MixAudioFormat(dst, src *uint8, format AudioFormat, len_ uint32, volume int)
- func MouseIsHaptic() int
- func NumHaptics() int
- func NumJoysticks() int
- func OpenAudio(desired, obtained *AudioSpec) int
- func OpenAudioDevice(device string, isCapture int, desired, obtained *AudioSpec, allowedChanges int) int
- func OutOfMemory()
- func PauseAudio(pauseOn int)
- func PauseAudioDevice(dev AudioDeviceID, pauseOn int)
- func PeepEvents(events []Event, action EventAction, minType, maxType uint32) int
- func PumpEvents()
- func PushEvent(event Event) int
- func QueryTexture(texture *Texture, format *uint32, access *int, w *int, h *int) int
- func Quit()
- func QuitSubSystem(flags uint32)
- func RecordGesture(t TouchID) int
- func RegisterEvents(numEvents int) uint32
- func SaveAllDollarTemplates(src *RWops) int
- func SaveDollarTemplate(g GestureID, src *RWops) int
- func SetClipboardText(text string) int
- func SetCursor(cursor *Cursor)
- func SetHint(name, value string) bool
- func SetHintWithPriority(name, value string, hp HintPriority) bool
- func SetModState(mod Keymod)
- func SetRelativeMouseMode(enabled bool) int
- func SetTextInputRect(rect *Rect)
- func ShowCursor(toggle int) int
- func StartTextInput()
- func StopTextInput()
- func TestGetPlatform(t *testing.T)
- func TestInitQuit(t *testing.T)
- func UnloadObject(handle unsafe.Pointer)
- func UnlockAudio()
- func UnlockAudioDevice(dev AudioDeviceID)
- func Unsupported()
- func Update()
- func VERSION(version *Version)
- func VERSIONNUM(x, y, z int) int
- func VERSION_ATLEAST(x, y, z int) bool
- func VideoInit(driverName string) int
- func VideoQuit()
- func WasInit(flags uint32) uint32
- type AudioCVT
- type AudioCallback
- type AudioDeviceID
- type AudioFilter
- type AudioFormat
- func (format AudioFormat) BitSize() uint8
- func (format AudioFormat) IsBigEndian() bool
- func (format AudioFormat) IsFloat() bool
- func (format AudioFormat) IsInt() bool
- func (format AudioFormat) IsLittleEndian() bool
- func (format AudioFormat) IsSigned() bool
- func (format AudioFormat) IsUnsigned() bool
- type AudioSpec
- type AudioStatus
- type BlendMode
- type CEvent
- type ClipboardEvent
- type CocoaInfo
- type Color
- type CommonEvent
- type ControllerAxisEvent
- type ControllerButtonEvent
- type ControllerDeviceEvent
- type Cursor
- type DFBInfo
- type DisplayMode
- type DollarGestureEvent
- type DropEvent
- type ErrorCode
- type Event
- type EventAction
- type EventFilter
- type Finger
- type FingerID
- type GLContext
- type GLattr
- type GameController
- func (ctrl *GameController) Close()
- func (ctrl *GameController) GetAttached() bool
- func (ctrl *GameController) GetAxis(axis GameControllerAxis) int16
- func (ctrl *GameController) GetBindForAxis(axis GameControllerAxis) GameControllerButtonBind
- func (ctrl *GameController) GetBindForButton(btn GameControllerButton) GameControllerButtonBind
- func (ctrl *GameController) GetButton(btn GameControllerButton) byte
- func (ctrl *GameController) GetJoystick() *Joystick
- type GameControllerAxis
- type GameControllerBindType
- type GameControllerButton
- type GameControllerButtonBind
- type GestureID
- type Haptic
- func (h *Haptic) Close()
- func (h *Haptic) DestroyEffect(effect int)
- func (h *Haptic) EffectSupported(he *HapticEffect) int
- func (h *Haptic) GetEffectStatus(effect int) int
- func (h *Haptic) NewEffect(he *HapticEffect) int
- func (h *Haptic) NumEffects() int
- func (h *Haptic) NumEffectsPlaying() int
- func (h *Haptic) Pause() int
- func (h *Haptic) Query() uint
- func (h *Haptic) RumbleInit() int
- func (h *Haptic) RumblePlay(strength float32, length uint32) int
- func (h *Haptic) RumbleStop() int
- func (h *Haptic) RumbleSupported() int
- func (h *Haptic) RunEffect(effect int, iterations uint32) int
- func (h *Haptic) SetAutocenter(autocenter int) int
- func (h *Haptic) SetGain(gain int) int
- func (h *Haptic) StopAll() int
- func (h *Haptic) StopEffect(effect int) int
- func (h *Haptic) Unpause() int
- func (h *Haptic) UpdateEffect(effect int, data *HapticEffect) int
- type HapticCondition
- type HapticConstant
- type HapticCustom
- type HapticDirection
- type HapticEffect
- type HapticPeriodic
- type HapticRamp
- type HintPriority
- type JoyAxisEvent
- type JoyBallEvent
- type JoyButtonEvent
- type JoyDeviceEvent
- type JoyHatEvent
- type Joystick
- func (joy *Joystick) Close()
- func (joy *Joystick) GetAttached() bool
- func (joy *Joystick) GetAxis(axis int) int16
- func (joy *Joystick) GetBall(ball int, dx, dy *int) int
- func (joy *Joystick) GetButton(button int) byte
- func (joy *Joystick) GetGUID() JoystickGUID
- func (joy *Joystick) GetHat(hat int) byte
- func (joy *Joystick) InstanceID() JoystickID
- func (joy *Joystick) Name() string
- func (joy *Joystick) NumAxes() int
- func (joy *Joystick) NumBalls() int
- func (joy *Joystick) NumButtons() int
- func (joy *Joystick) NumHats() int
- type JoystickGUID
- type JoystickID
- type KeyDownEvent
- type KeyUpEvent
- type Keycode
- type Keymod
- type Keysym
- type LogOutputFunction
- type LogPriority
- type MouseButtonEvent
- type MouseMotionEvent
- type MouseWheelEvent
- type MultiGestureEvent
- type OSEvent
- type Palette
- type PixelFormat
- type Point
- type PowerState
- type QuitEvent
- type RWops
- func (area *RWops) FreeRW()
- func (ctx *RWops) RWclose() int
- func (ctx *RWops) RWread(ptr unsafe.Pointer, size, maxnum uint) uint
- func (ctx *RWops) RWseek(offset int64, whence int) int64
- func (ctx *RWops) RWsize() int64
- func (ctx *RWops) RWtell() int64
- func (ctx *RWops) RWwrite(ptr unsafe.Pointer, size, num uint) uint
- func (src *RWops) ReadBE16() uint16
- func (src *RWops) ReadBE32() uint32
- func (src *RWops) ReadBE64() uint64
- func (src *RWops) ReadLE16() uint16
- func (src *RWops) ReadLE32() uint32
- func (src *RWops) ReadLE64() uint64
- func (src *RWops) ReadU8() uint8
- func (dst *RWops) WriteBE16(value uint16) uint
- func (dst *RWops) WriteBE32(value uint32) uint
- func (dst *RWops) WriteBE64(value uint64) uint
- func (dst *RWops) WriteLE16(value uint16) uint
- func (dst *RWops) WriteLE32(value uint32) uint
- func (dst *RWops) WriteLE64(value uint64) uint
- func (dst *RWops) WriteU8(value uint8) uint
- type Rect
- type Renderer
- func (renderer *Renderer) Clear() int
- func (renderer *Renderer) Copy(texture *Texture, src, dst *Rect) int
- func (renderer *Renderer) CopyEx(texture *Texture, src, dst *Rect, angle float64, center *Point, ...) int
- func (renderer *Renderer) CreateTextureFromSurface(surface *Surface) *Texture
- func (renderer *Renderer) Destroy()
- func (renderer *Renderer) DrawLine(x1, y1, x2, y2 int) int
- func (renderer *Renderer) DrawLines(points []Point) int
- func (renderer *Renderer) DrawPoint(x, y int) int
- func (renderer *Renderer) DrawPoints(points []Point) int
- func (renderer *Renderer) DrawRect(rect *Rect) int
- func (renderer *Renderer) DrawRects(rects []Rect) int
- func (renderer *Renderer) FillRect(rect *Rect) int
- func (renderer *Renderer) FillRects(rects []Rect) int
- func (renderer *Renderer) GetClipRect(rect *Rect)
- func (renderer *Renderer) GetDrawBlendMode(bm *BlendMode) int
- func (renderer *Renderer) GetDrawColor() (r, g, b, a uint8, status int)
- func (renderer *Renderer) GetRenderTarget() *Texture
- func (renderer *Renderer) GetRendererInfo(info *RendererInfo) int
- func (renderer *Renderer) GetRendererOutputSize() (w, h int, status int)
- func (renderer *Renderer) GetScale() (scaleX, scaleY float32)
- func (renderer *Renderer) GetViewport(rect *Rect)
- func (renderer *Renderer) Present()
- func (renderer *Renderer) ReadPixels(rect *Rect, format uint32, pixels unsafe.Pointer, pitch int) int
- func (renderer *Renderer) RenderTargetSupported() bool
- func (renderer *Renderer) SetClipRect(rect *Rect) int
- func (renderer *Renderer) SetDrawBlendMode(bm BlendMode) int
- func (renderer *Renderer) SetDrawColor(r, g, b, a uint8) int
- func (renderer *Renderer) SetLogicalSize(w int, h int) int
- func (renderer *Renderer) SetRenderTarget(texture *Texture) int
- func (renderer *Renderer) SetScale(scaleX, scaleY float32) int
- func (renderer *Renderer) SetViewport(rect *Rect) int
- type RendererFlip
- type RendererInfo
- type RendererInfoData
- type SW_YUVTexture
- type Scancode
- type Surface
- func (src *Surface) Blit(srcRect *Rect, dst *Surface, dstRect *Rect) int
- func (src *Surface) BlitScaled(srcRect *Rect, dst *Surface, dstRect *Rect) int
- func (surface *Surface) BytesPerPixel() int
- func (surface *Surface) Convert(fmt *PixelFormat, flags uint32) *Surface
- func (surface *Surface) ConvertFormat(pixelFormat uint32, flags uint32) *Surface
- func (surface *Surface) Data() unsafe.Pointer
- func (surface *Surface) FillRect(rect *Rect, color uint32) int
- func (surface *Surface) FillRects(rects []Rect, color uint32) int
- func (surface *Surface) Free()
- func (surface *Surface) GetAlphaMod() (alpha uint8, status int)
- func (surface *Surface) GetBlendMode() (bm BlendMode, status int)
- func (surface *Surface) GetClipRect(rect *Rect)
- func (surface *Surface) GetColorKey() (key uint32, status int)
- func (surface *Surface) GetColorMod() (r, g, b uint8, status int)
- func (surface *Surface) Lock()
- func (src *Surface) LowerBlit(srcRect *Rect, dst *Surface, dstRect *Rect) int
- func (src *Surface) LowerBlitScaled(srcRect *Rect, dst *Surface, dstRect *Rect) int
- func (surface *Surface) MustLock() bool
- func (surface *Surface) PixelNum() int
- func (surface *Surface) Pixels() []byte
- func (surface *Surface) SaveBMP(file string) int
- func (surface *Surface) SaveBMP_RW(dst *RWops, freeDst int) int
- func (surface *Surface) SetAlphaMod(alpha uint8) int
- func (surface *Surface) SetBlendMode(bm BlendMode) int
- func (surface *Surface) SetClipRect(rect *Rect) bool
- func (surface *Surface) SetColorKey(flag int, key uint32) int
- func (surface *Surface) SetColorMod(r, g, b uint8) int
- func (surface *Surface) SetPalette(palette *Palette) int
- func (surface *Surface) SetRLE(flag int) int
- func (src *Surface) SoftStretch(srcRect *Rect, dst *Surface, dstRect *Rect) int
- func (surface *Surface) Unlock()
- func (src *Surface) UpperBlit(srcRect *Rect, dst *Surface, dstRect *Rect) int
- func (src *Surface) UpperBlitScaled(srcRect *Rect, dst *Surface, dstRect *Rect) int
- type SysWMEvent
- type SysWMInfo
- type SystemCursor
- type TextEditingEvent
- type TextInputEvent
- type Texture
- func (texture *Texture) Destroy()
- func (texture *Texture) GL_BindTexture(texw, texh *float32) int
- func (texture *Texture) GL_UnbindTexture() int
- func (texture *Texture) GetAlphaMod() (alpha uint8, status int)
- func (texture *Texture) GetBlendMode() (bm BlendMode, status int)
- func (texture *Texture) Lock(rect *Rect, pixels unsafe.Pointer, pitch *int) int
- func (texture *Texture) SetAlphaMod(alpha uint8) int
- func (texture *Texture) SetBlendMode(bm BlendMode) int
- func (texture *Texture) SetColorMod(r uint8, g uint8, b uint8) int
- func (texture *Texture) Unlock()
- func (texture *Texture) Update(rect *Rect, pixels unsafe.Pointer, pitch int) int
- type TouchFingerEvent
- type TouchID
- type UIKitInfo
- type UserEvent
- type Version
- type Window
- func (window *Window) Destroy()
- func (window *Window) GetBrightness() float32
- func (window *Window) GetData(name string) unsafe.Pointer
- func (window *Window) GetDisplayIndex() int
- func (window *Window) GetDisplayMode(mode *DisplayMode) int
- func (window *Window) GetFlags() uint32
- func (window *Window) GetGammaRamp() (red, green, blue uint16, status int)
- func (window *Window) GetGrab() bool
- func (window *Window) GetID() uint32
- func (window *Window) GetMaximumSize() (w, h int)
- func (window *Window) GetMinimumSize() (w, h int)
- func (window *Window) GetPixelFormat() uint32
- func (window *Window) GetPosition() (x, y int)
- func (window *Window) GetRenderer() *Renderer
- func (window *Window) GetSize() (w, h int)
- func (window *Window) GetSurface() *Surface
- func (window *Window) GetTitle() string
- func (window *Window) GetWMInfo(info *SysWMInfo) bool
- func (window *Window) Hide()
- func (window *Window) Maximize()
- func (window *Window) Minimize()
- func (window *Window) Raise()
- func (window *Window) Restore()
- func (window *Window) SetBordered(bordered bool)
- func (window *Window) SetBrightness(brightness float32) int
- func (window *Window) SetData(name string, userdata unsafe.Pointer) unsafe.Pointer
- func (window *Window) SetDisplayMode(mode *DisplayMode) int
- func (window *Window) SetFullscreen(flags uint32) int
- func (window *Window) SetGammaRamp(red, green, blue *uint16) int
- func (window *Window) SetGrab(grabbed bool)
- func (window *Window) SetIcon(icon *Surface)
- func (window *Window) SetMaximumSize(maxW int, maxH int)
- func (window *Window) SetMinimumSize(minW int, minH int)
- func (window *Window) SetPosition(x int, y int)
- func (window *Window) SetSize(w int, h int)
- func (window *Window) SetTitle(title string)
- func (window *Window) Show()
- func (window *Window) UpdateSurface() int
- func (window *Window) UpdateSurfaceRects(rects []Rect) int
- func (window *Window) WarpMouseInWindow(x, y int)
- type WindowEvent
- type WindowsInfo
- type X11Info
Constants ¶
View Source
const ( AUDIO_MASK_BITSIZE = C.SDL_AUDIO_MASK_BITSIZE AUDIO_MASK_DATATYPE = C.SDL_AUDIO_MASK_DATATYPE AUDIO_MASK_ENDIAN = C.SDL_AUDIO_MASK_ENDIAN AUDIO_MASK_SIGNED = C.SDL_AUDIO_MASK_SIGNED )
View Source
const ( AUDIO_U8 = C.AUDIO_U8 AUDIO_S8 = C.AUDIO_S8 AUDIO_U16LSB = C.AUDIO_U16LSB AUDIO_S16LSB = C.AUDIO_S16LSB AUDIO_U16MSB = C.AUDIO_U16MSB AUDIO_S16MSB = C.AUDIO_S16MSB AUDIO_U16 = C.AUDIO_U16 AUDIO_S16 = C.AUDIO_S16 AUDIO_S32LSB = C.AUDIO_S32LSB AUDIO_S32MSB = C.AUDIO_S32MSB AUDIO_S32 = C.AUDIO_S32 AUDIO_F32LSB = C.AUDIO_F32LSB AUDIO_F32MSB = C.AUDIO_F32MSB AUDIO_F32 = C.AUDIO_F32 AUDIO_U16SYS = C.AUDIO_U16SYS AUDIO_S16SYS = C.AUDIO_S16SYS AUDIO_S32SYS = C.AUDIO_S32SYS AUDIO_F32SYS = C.AUDIO_F32SYS )
View Source
const ( AUDIO_ALLOW_FREQUENCY_CHANGE = C.SDL_AUDIO_ALLOW_FREQUENCY_CHANGE AUDIO_ALLOW_FORMAT_CHANGE = C.SDL_AUDIO_ALLOW_FORMAT_CHANGE AUDIO_ALLOW_CHANNELS_CHANGE = C.SDL_AUDIO_ALLOW_CHANNELS_CHANGE AUDIO_ALLOW_ANY_CHANGE = C.SDL_AUDIO_ALLOW_ANY_CHANGE )
View Source
const ( AUDIO_STOPPED = C.SDL_AUDIO_STOPPED AUDIO_PLAYING = C.SDL_AUDIO_PLAYING AUDIO_PAUSED = C.SDL_AUDIO_PAUSED )
View Source
const ( BLENDMODE_NONE = C.SDL_BLENDMODE_NONE BLENDMODE_BLEND = C.SDL_BLENDMODE_BLEND BLENDMODE_ADD = C.SDL_BLENDMODE_ADD BLENDMODE_MOD = C.SDL_BLENDMODE_MOD )
View Source
const ( LIL_ENDIAN = C.SDL_LIL_ENDIAN BIG_ENDIAN = C.SDL_BIG_ENDIAN )
View Source
const ( ENOMEM = C.SDL_ENOMEM EFREAD = C.SDL_EFREAD EFWRITE = C.SDL_EFWRITE EFSEEK = C.SDL_EFSEEK UNSUPPORTED = C.SDL_UNSUPPORTED LASTERROR = C.SDL_LASTERROR )
View Source
const ( FIRSTEVENT = C.SDL_FIRSTEVENT QUIT = C.SDL_QUIT APP_TERMINATING = C.SDL_APP_TERMINATING APP_LOWMEMORY = C.SDL_APP_LOWMEMORY APP_WILLENTERBACKGROUND = C.SDL_APP_WILLENTERBACKGROUND APP_DIDENTERBACKGROUND = C.SDL_APP_DIDENTERBACKGROUND APP_WILLENTERFOREGROUND = C.SDL_APP_WILLENTERFOREGROUND APP_DIDENTERFOREGROUND = C.SDL_APP_DIDENTERFOREGROUND /* Window events */ WINDOWEVENT = C.SDL_WINDOWEVENT SYSWMEVENT = C.SDL_SYSWMEVENT /* Keyboard events */ KEYDOWN = C.SDL_KEYDOWN KEYUP = C.SDL_KEYUP TEXTEDITING = C.SDL_TEXTEDITING TEXTINPUT = C.SDL_TEXTINPUT /* Mouse events */ MOUSEMOTION = C.SDL_MOUSEMOTION MOUSEBUTTONDOWN = C.SDL_MOUSEBUTTONDOWN MOUSEBUTTONUP = C.SDL_MOUSEBUTTONUP MOUSEWHEEL = C.SDL_MOUSEWHEEL /* Joystick events */ JOYAXISMOTION = C.SDL_JOYAXISMOTION JOYBALLMOTION = C.SDL_JOYBALLMOTION JOYHATMOTION = C.SDL_JOYHATMOTION JOYBUTTONDOWN = C.SDL_JOYBUTTONDOWN JOYBUTTONUP = C.SDL_JOYBUTTONUP JOYDEVICEADDED = C.SDL_JOYDEVICEADDED JOYDEVICEREMOVED = C.SDL_JOYDEVICEREMOVED /* Game controller events */ CONTROLLERAXISMOTION = C.SDL_CONTROLLERAXISMOTION CONTROLLERBUTTONDOWN = C.SDL_CONTROLLERBUTTONDOWN CONTROLLERBUTTONUP = C.SDL_CONTROLLERBUTTONUP CONTROLLERDEVICEADDED = C.SDL_CONTROLLERDEVICEADDED CONTROLLERDEVICEREMOVED = C.SDL_CONTROLLERDEVICEREMOVED CONTROLLERDEVICEREMAPPED = C.SDL_CONTROLLERDEVICEREMAPPED /* Touch events */ FINGERDOWN = C.SDL_FINGERDOWN FINGERUP = C.SDL_FINGERUP FINGERMOTION = C.SDL_FINGERMOTION /* Gesture events */ DOLLARGESTURE = C.SDL_DOLLARGESTURE DOLLARRECORD = C.SDL_DOLLARRECORD MULTIGESTURE = C.SDL_MULTIGESTURE /* Clipboard events */ CLIPBOARDUPDATE = C.SDL_CLIPBOARDUPDATE /* Drag and drop events */ DROPFILE = C.SDL_DROPFILE USEREVENT = C.SDL_USEREVENT LASTEVENT = C.SDL_LASTEVENT )
View Source
const ( ADDEVENT = C.SDL_ADDEVENT PEEKEVENT = C.SDL_PEEKEVENT GETEVENT = C.SDL_PEEKEVENT )
View Source
const ( QUERY = C.SDL_QUERY IGNORE = C.SDL_IGNORE DISABLE = C.SDL_DISABLE ENABLE = C.SDL_ENABLE )
View Source
const ( CONTROLLER_BINDTYPE_NONE = C.SDL_CONTROLLER_BINDTYPE_NONE CONTROLLER_BINDTYPE_BUTTON = C.SDL_CONTROLLER_BINDTYPE_BUTTON CONTROLLER_BINDTYPE_AXIS = C.SDL_CONTROLLER_BINDTYPE_AXIS CONTROLLER_BINDTYPE_HAT = C.SDL_CONTROLLER_BINDTYPE_HAT )
View Source
const ( CONTROLLER_AXIS_INVALID = C.SDL_CONTROLLER_AXIS_INVALID CONTROLLER_AXIS_LEFTX = C.SDL_CONTROLLER_AXIS_LEFTX CONTROLLER_AXIS_LEFTY = C.SDL_CONTROLLER_AXIS_LEFTY CONTROLLER_AXIS_RIGHTX = C.SDL_CONTROLLER_AXIS_RIGHTX CONTROLLER_AXIS_RIGHTY = C.SDL_CONTROLLER_AXIS_RIGHTY CONTROLLER_AXIS_TRIGGERLEFT = C.SDL_CONTROLLER_AXIS_TRIGGERLEFT CONTROLLER_AXIS_TRIGGERRIGHT = C.SDL_CONTROLLER_AXIS_TRIGGERRIGHT CONTROLLER_AXIS_MAX = C.SDL_CONTROLLER_AXIS_MAX )
View Source
const ( CONTROLLER_BUTTON_INVALID = C.SDL_CONTROLLER_BUTTON_INVALID CONTROLLER_BUTTON_A = C.SDL_CONTROLLER_BUTTON_A CONTROLLER_BUTTON_B = C.SDL_CONTROLLER_BUTTON_B CONTROLLER_BUTTON_X = C.SDL_CONTROLLER_BUTTON_X CONTROLLER_BUTTON_Y = C.SDL_CONTROLLER_BUTTON_Y CONTROLLER_BUTTON_BACK = C.SDL_CONTROLLER_BUTTON_BACK CONTROLLER_BUTTON_GUIDE = C.SDL_CONTROLLER_BUTTON_GUIDE CONTROLLER_BUTTON_START = C.SDL_CONTROLLER_BUTTON_START CONTROLLER_BUTTON_LEFTSTICK = C.SDL_CONTROLLER_BUTTON_LEFTSTICK CONTROLLER_BUTTON_RIGHTSTICK = C.SDL_CONTROLLER_BUTTON_RIGHTSTICK CONTROLLER_BUTTON_LEFTSHOULDER = C.SDL_CONTROLLER_BUTTON_LEFTSHOULDER CONTROLLER_BUTTON_RIGHTSHOULDER = C.SDL_CONTROLLER_BUTTON_RIGHTSHOULDER CONTROLLER_BUTTON_DPAD_UP = C.SDL_CONTROLLER_BUTTON_DPAD_UP CONTROLLER_BUTTON_DPAD_DOWN = C.SDL_CONTROLLER_BUTTON_DPAD_DOWN CONTROLLER_BUTTON_DPAD_LEFT = C.SDL_CONTROLLER_BUTTON_DPAD_LEFT CONTROLLER_BUTTON_DPAD_RIGHT = C.SDL_CONTROLLER_BUTTON_DPAD_RIGHT CONTROLLER_BUTTON_MAX = C.SDL_CONTROLLER_BUTTON_MAX )
View Source
const ( HAPTIC_CONSTANT = C.SDL_HAPTIC_CONSTANT HAPTIC_SINE = C.SDL_HAPTIC_SINE HAPTIC_LEFTRIGHT = C.SDL_HAPTIC_LEFTRIGHT //HAPTIC_SQUARE = C.SDL_HAPTIC_SQUARE (back in SDL 2.1) HAPTIC_TRIANGLE = C.SDL_HAPTIC_TRIANGLE HAPTIC_SAWTOOTHUP = C.SDL_HAPTIC_SAWTOOTHUP HAPTIC_SAWTOOTHDOWN = C.SDL_HAPTIC_SAWTOOTHDOWN HAPTIC_RAMP = C.SDL_HAPTIC_RAMP HAPTIC_SPRING = C.SDL_HAPTIC_SPRING HAPTIC_DAMPER = C.SDL_HAPTIC_DAMPER HAPTIC_INERTIA = C.SDL_HAPTIC_INERTIA HAPTIC_FRICTION = C.SDL_HAPTIC_FRICTION HAPTIC_CUSTOM = C.SDL_HAPTIC_CUSTOM HAPTIC_GAIN = C.SDL_HAPTIC_GAIN HAPTIC_AUTOCENTER = C.SDL_HAPTIC_AUTOCENTER HAPTIC_STATUS = C.SDL_HAPTIC_STATUS HAPTIC_PAUSE = C.SDL_HAPTIC_PAUSE )
View Source
const ( HAPTIC_POLAR = C.SDL_HAPTIC_POLAR HAPTIC_CARTESIAN = C.SDL_HAPTIC_CARTESIAN HAPTIC_SPHERICAL = C.SDL_HAPTIC_SPHERICAL HAPTIC_INFINITY = C.SDL_HAPTIC_INFINITY )
View Source
const ( HINT_FRAMEBUFFER_ACCELERATION = C.SDL_HINT_FRAMEBUFFER_ACCELERATION HINT_RENDER_DRIVER = C.SDL_HINT_RENDER_DRIVER HINT_RENDER_OPENGL_SHADERS = C.SDL_HINT_RENDER_OPENGL_SHADERS HINT_RENDER_DIRECT3D_THREADSAFE = C.SDL_HINT_RENDER_DIRECT3D_THREADSAFE HINT_RENDER_DIRECT3D11_DEBUG = C.SDL_HINT_RENDER_DIRECT3D11_DEBUG HINT_RENDER_SCALE_QUALITY = C.SDL_HINT_RENDER_SCALE_QUALITY HINT_RENDER_VSYNC = C.SDL_HINT_RENDER_VSYNC HINT_VIDEO_ALLOW_SCREENSAVER = C.SDL_HINT_VIDEO_ALLOW_SCREENSAVER HINT_VIDEO_X11_XVIDMODE = C.SDL_HINT_VIDEO_X11_XVIDMODE HINT_VIDEO_X11_XINERAMA = C.SDL_HINT_VIDEO_X11_XINERAMA HINT_VIDEO_X11_XRANDR = C.SDL_HINT_VIDEO_X11_XRANDR HINT_GRAB_KEYBOARD = C.SDL_HINT_GRAB_KEYBOARD HINT_MOUSE_RELATIVE_MODE_WARP = C.SDL_HINT_MOUSE_RELATIVE_MODE_WARP HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS = C.SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS HINT_IDLE_TIMER_DISABLED = C.SDL_HINT_IDLE_TIMER_DISABLED HINT_ORIENTATIONS = C.SDL_HINT_ORIENTATIONS HINT_ACCELEROMETER_AS_JOYSTICK = C.SDL_HINT_ACCELEROMETER_AS_JOYSTICK HINT_XINPUT_ENABLED = C.SDL_HINT_XINPUT_ENABLED HINT_GAMECONTROLLERCONFIG = C.SDL_HINT_GAMECONTROLLERCONFIG HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS = C.SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS HINT_ALLOW_TOPMOST = C.SDL_HINT_ALLOW_TOPMOST HINT_TIMER_RESOLUTION = C.SDL_HINT_TIMER_RESOLUTION HINT_VIDEO_HIGHDPI_DISABLED = C.SDL_HINT_VIDEO_HIGHDPI_DISABLED HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK = C.SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK HINT_VIDEO_WIN_D3DCOMPILER = C.SDL_HINT_VIDEO_WIN_D3DCOMPILER HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT = C.SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT HINT_WINRT_PRIVACY_POLICY_URL = C.SDL_HINT_WINRT_PRIVACY_POLICY_URL HINT_WINRT_PRIVACY_POLICY_LABEL = C.SDL_HINT_WINRT_PRIVACY_POLICY_LABEL HINT_WINRT_HANDLE_BACK_BUTTON = C.SDL_HINT_WINRT_HANDLE_BACK_BUTTON HINT_VIDEO_MAC_FULLSCREEN_SPACES = C.SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES )
Hint Names
View Source
const ( HINT_DEFAULT = C.SDL_HINT_DEFAULT HINT_NORMAL = C.SDL_HINT_NORMAL HINT_OVERRIDE = C.SDL_HINT_OVERRIDE )
View Source
const ( HAT_CENTERED = C.SDL_HAT_CENTERED HAT_UP = C.SDL_HAT_UP HAT_RIGHT = C.SDL_HAT_RIGHT HAT_DOWN = C.SDL_HAT_DOWN HAT_LEFT = C.SDL_HAT_LEFT HAT_RIGHTUP = C.SDL_HAT_RIGHTUP HAT_RIGHTDOWN = C.SDL_HAT_RIGHTDOWN HAT_LEFTUP = C.SDL_HAT_LEFTUP HAT_LEFTDOWN = C.SDL_HAT_LEFTDOWN )
View Source
const ( K_UNKNOWN = C.SDLK_UNKNOWN K_RETURN = C.SDLK_RETURN K_ESCAPE = C.SDLK_ESCAPE K_BACKSPACE = C.SDLK_BACKSPACE K_TAB = C.SDLK_TAB K_SPACE = C.SDLK_SPACE K_EXCLAIM = C.SDLK_EXCLAIM K_QUOTEDBL = C.SDLK_QUOTEDBL K_HASH = C.SDLK_HASH K_PERCENT = C.SDLK_PERCENT K_DOLLAR = C.SDLK_DOLLAR K_AMPERSAND = C.SDLK_AMPERSAND K_QUOTE = C.SDLK_QUOTE K_LEFTPAREN = C.SDLK_LEFTPAREN K_RIGHTPAREN = C.SDLK_RIGHTPAREN K_ASTERISK = C.SDLK_ASTERISK K_PLUS = C.SDLK_PLUS K_COMMA = C.SDLK_COMMA K_MINUS = C.SDLK_MINUS K_PERIOD = C.SDLK_PERIOD K_SLASH = C.SDLK_SLASH K_0 = C.SDLK_0 K_1 = C.SDLK_1 K_2 = C.SDLK_2 K_3 = C.SDLK_3 K_4 = C.SDLK_4 K_5 = C.SDLK_5 K_6 = C.SDLK_6 K_7 = C.SDLK_7 K_8 = C.SDLK_8 K_9 = C.SDLK_9 K_COLON = C.SDLK_COLON K_SEMICOLON = C.SDLK_SEMICOLON K_LESS = C.SDLK_LESS K_EQUALS = C.SDLK_EQUALS K_GREATER = C.SDLK_GREATER K_QUESTION = C.SDLK_QUESTION K_AT = C.SDLK_AT /* Skip uppercase letters */ K_LEFTBRACKET = C.SDLK_LEFTBRACKET K_BACKSLASH = C.SDLK_BACKSLASH K_RIGHTBRACKET = C.SDLK_RIGHTBRACKET K_CARET = C.SDLK_CARET K_UNDERSCORE = C.SDLK_UNDERSCORE K_BACKQUOTE = C.SDLK_BACKQUOTE K_a = C.SDLK_a K_b = C.SDLK_b K_c = C.SDLK_c K_d = C.SDLK_d K_e = C.SDLK_e K_f = C.SDLK_f K_g = C.SDLK_g K_h = C.SDLK_h K_i = C.SDLK_i K_j = C.SDLK_j K_k = C.SDLK_k K_l = C.SDLK_l K_m = C.SDLK_m K_n = C.SDLK_n K_o = C.SDLK_o K_p = C.SDLK_p K_q = C.SDLK_q K_r = C.SDLK_r K_s = C.SDLK_s K_t = C.SDLK_t K_u = C.SDLK_u K_v = C.SDLK_v K_w = C.SDLK_w K_x = C.SDLK_x K_y = C.SDLK_y K_z = C.SDLK_z K_CAPSLOCK = C.SDLK_CAPSLOCK K_F1 = C.SDLK_F1 K_F2 = C.SDLK_F2 K_F3 = C.SDLK_F3 K_F4 = C.SDLK_F4 K_F5 = C.SDLK_F5 K_F6 = C.SDLK_F6 K_F7 = C.SDLK_F7 K_F8 = C.SDLK_F8 K_F9 = C.SDLK_F9 K_F10 = C.SDLK_F10 K_F11 = C.SDLK_F11 K_F12 = C.SDLK_F12 K_PRINTSCREEN = C.SDLK_PRINTSCREEN K_SCROLLLOCK = C.SDLK_SCROLLLOCK K_PAUSE = C.SDLK_PAUSE K_INSERT = C.SDLK_INSERT K_HOME = C.SDLK_HOME K_PAGEUP = C.SDLK_PAGEUP K_DELETE = C.SDLK_DELETE K_END = C.SDLK_END K_PAGEDOWN = C.SDLK_PAGEDOWN K_RIGHT = C.SDLK_RIGHT K_LEFT = C.SDLK_LEFT K_DOWN = C.SDLK_DOWN K_UP = C.SDLK_UP K_NUMLOCKCLEAR = C.SDLK_NUMLOCKCLEAR K_KP_DIVIDE = C.SDLK_KP_DIVIDE K_KP_MULTIPLY = C.SDLK_KP_MULTIPLY K_KP_MINUS = C.SDLK_KP_MINUS K_KP_PLUS = C.SDLK_KP_PLUS K_KP_ENTER = C.SDLK_KP_ENTER K_KP_1 = C.SDLK_KP_1 K_KP_2 = C.SDLK_KP_2 K_KP_3 = C.SDLK_KP_3 K_KP_4 = C.SDLK_KP_4 K_KP_5 = C.SDLK_KP_5 K_KP_6 = C.SDLK_KP_6 K_KP_7 = C.SDLK_KP_7 K_KP_8 = C.SDLK_KP_8 K_KP_9 = C.SDLK_KP_9 K_KP_0 = C.SDLK_KP_0 K_KP_PERIOD = C.SDLK_KP_PERIOD K_APPLICATION = C.SDLK_APPLICATION K_POWER = C.SDLK_POWER K_KP_EQUALS = C.SDLK_KP_EQUALS K_F13 = C.SDLK_F13 K_F14 = C.SDLK_F14 K_F15 = C.SDLK_F15 K_F16 = C.SDLK_F16 K_F17 = C.SDLK_F17 K_F18 = C.SDLK_F18 K_F19 = C.SDLK_F19 K_F20 = C.SDLK_F20 K_F21 = C.SDLK_F21 K_F22 = C.SDLK_F22 K_F23 = C.SDLK_F23 K_F24 = C.SDLK_F24 K_EXECUTE = C.SDLK_EXECUTE K_HELP = C.SDLK_HELP K_MENU = C.SDLK_MENU K_SELECT = C.SDLK_SELECT K_STOP = C.SDLK_STOP K_AGAIN = C.SDLK_AGAIN K_UNDO = C.SDLK_UNDO K_CUT = C.SDLK_CUT K_COPY = C.SDLK_COPY K_PASTE = C.SDLK_PASTE K_FIND = C.SDLK_FIND K_MUTE = C.SDLK_MUTE K_VOLUMEUP = C.SDLK_VOLUMEUP K_VOLUMEDOWN = C.SDLK_VOLUMEDOWN K_KP_COMMA = C.SDLK_KP_COMMA K_KP_EQUALSAS400 = C.SDLK_KP_EQUALSAS400 K_ALTERASE = C.SDLK_ALTERASE K_SYSREQ = C.SDLK_SYSREQ K_CANCEL = C.SDLK_CANCEL K_CLEAR = C.SDLK_CLEAR K_PRIOR = C.SDLK_PRIOR K_RETURN2 = C.SDLK_RETURN2 K_SEPARATOR = C.SDLK_SEPARATOR K_OUT = C.SDLK_OUT K_OPER = C.SDLK_OPER K_CLEARAGAIN = C.SDLK_CLEARAGAIN K_CRSEL = C.SDLK_CRSEL K_EXSEL = C.SDLK_EXSEL K_KP_00 = C.SDLK_KP_00 K_KP_000 = C.SDLK_KP_000 K_THOUSANDSSEPARATOR = C.SDLK_THOUSANDSSEPARATOR K_DECIMALSEPARATOR = C.SDLK_DECIMALSEPARATOR K_CURRENCYUNIT = C.SDLK_CURRENCYUNIT K_CURRENCYSUBUNIT = C.SDLK_CURRENCYSUBUNIT K_KP_LEFTPAREN = C.SDLK_KP_LEFTPAREN K_KP_RIGHTPAREN = C.SDLK_KP_RIGHTPAREN K_KP_LEFTBRACE = C.SDLK_KP_LEFTBRACE K_KP_RIGHTBRACE = C.SDLK_KP_RIGHTBRACE K_KP_TAB = C.SDLK_KP_TAB K_KP_BACKSPACE = C.SDLK_KP_BACKSPACE K_KP_A = C.SDLK_KP_A K_KP_B = C.SDLK_KP_B K_KP_C = C.SDLK_KP_C K_KP_D = C.SDLK_KP_D K_KP_E = C.SDLK_KP_E K_KP_F = C.SDLK_KP_F K_KP_XOR = C.SDLK_KP_XOR K_KP_POWER = C.SDLK_KP_POWER K_KP_PERCENT = C.SDLK_KP_PERCENT K_KP_LESS = C.SDLK_KP_LESS K_KP_GREATER = C.SDLK_KP_GREATER K_KP_AMPERSAND = C.SDLK_KP_AMPERSAND K_KP_DBLAMPERSAND = C.SDLK_KP_DBLAMPERSAND K_KP_VERTICALBAR = C.SDLK_KP_VERTICALBAR K_KP_DBLVERTICALBAR = C.SDLK_KP_DBLVERTICALBAR K_KP_COLON = C.SDLK_KP_COLON K_KP_HASH = C.SDLK_KP_HASH K_KP_SPACE = C.SDLK_KP_SPACE K_KP_AT = C.SDLK_KP_AT K_KP_EXCLAM = C.SDLK_KP_EXCLAM K_KP_MEMSTORE = C.SDLK_KP_MEMSTORE K_KP_MEMRECALL = C.SDLK_KP_MEMRECALL K_KP_MEMCLEAR = C.SDLK_KP_MEMCLEAR K_KP_MEMADD = C.SDLK_KP_MEMADD K_KP_MEMSUBTRACT = C.SDLK_KP_MEMSUBTRACT K_KP_MEMMULTIPLY = C.SDLK_KP_MEMMULTIPLY K_KP_MEMDIVIDE = C.SDLK_KP_MEMDIVIDE K_KP_PLUSMINUS = C.SDLK_KP_PLUSMINUS K_KP_CLEAR = C.SDLK_KP_CLEAR K_KP_CLEARENTRY = C.SDLK_KP_CLEARENTRY K_KP_BINARY = C.SDLK_KP_BINARY K_KP_OCTAL = C.SDLK_KP_OCTAL K_KP_DECIMAL = C.SDLK_KP_DECIMAL K_KP_HEXADECIMAL = C.SDLK_KP_HEXADECIMAL K_LCTRL = C.SDLK_LCTRL K_LSHIFT = C.SDLK_LSHIFT K_LALT = C.SDLK_LALT K_LGUI = C.SDLK_LGUI K_RCTRL = C.SDLK_RCTRL K_RSHIFT = C.SDLK_RSHIFT K_RALT = C.SDLK_RALT K_RGUI = C.SDLK_RGUI K_MODE = C.SDLK_MODE K_AUDIONEXT = C.SDLK_AUDIONEXT K_AUDIOPREV = C.SDLK_AUDIOPREV K_AUDIOSTOP = C.SDLK_AUDIOSTOP K_AUDIOPLAY = C.SDLK_AUDIOPLAY K_AUDIOMUTE = C.SDLK_AUDIOMUTE K_MEDIASELECT = C.SDLK_MEDIASELECT K_WWW = C.SDLK_WWW K_MAIL = C.SDLK_MAIL K_CALCULATOR = C.SDLK_CALCULATOR K_COMPUTER = C.SDLK_COMPUTER K_AC_SEARCH = C.SDLK_AC_SEARCH K_AC_HOME = C.SDLK_AC_HOME K_AC_BACK = C.SDLK_AC_BACK K_AC_FORWARD = C.SDLK_AC_FORWARD K_AC_STOP = C.SDLK_AC_STOP K_AC_REFRESH = C.SDLK_AC_REFRESH K_AC_BOOKMARKS = C.SDLK_AC_BOOKMARKS K_BRIGHTNESSDOWN = C.SDLK_BRIGHTNESSDOWN K_BRIGHTNESSUP = C.SDLK_BRIGHTNESSUP K_DISPLAYSWITCH = C.SDLK_DISPLAYSWITCH K_KBDILLUMTOGGLE = C.SDLK_KBDILLUMTOGGLE K_KBDILLUMDOWN = C.SDLK_KBDILLUMDOWN K_KBDILLUMUP = C.SDLK_KBDILLUMUP K_EJECT = C.SDLK_EJECT K_SLEEP = C.SDLK_SLEEP )
View Source
const ( KMOD_NONE = C.KMOD_NONE KMOD_LSHIFT = C.KMOD_LSHIFT KMOD_RSHIFT = C.KMOD_RSHIFT KMOD_LCTRL = C.KMOD_LCTRL KMOD_RCTRL = C.KMOD_RCTRL KMOD_LALT = C.KMOD_LALT KMOD_RALT = C.KMOD_RALT KMOD_LGUI = C.KMOD_LGUI KMOD_RGUI = C.KMOD_RGUI KMOD_NUM = C.KMOD_NUM KMOD_CAPS = C.KMOD_CAPS KMOD_MODE = C.KMOD_MODE KMOD_CTRL = C.KMOD_CTRL KMOD_SHIFT = C.KMOD_SHIFT KMOD_ALT = C.KMOD_ALT KMOD_GUI = C.KMOD_GUI KMOD_RESERVED = C.KMOD_RESERVED )
View Source
const ( LOG_CATEGORY_APPLICATION = iota LOG_CATEGORY_ERROR LOG_CATEGORY_ASSERT LOG_CATEGORY_SYSTEM LOG_CATEGORY_AUDIO LOG_CATEGORY_VIDEO LOG_CATEGORY_RENDER LOG_CATEGORY_INPUT LOG_CATEGORY_TEST LOG_CATEGORY_RESERVED1 LOG_CATEGORY_RESERVED2 LOG_CATEGORY_RESERVED3 LOG_CATEGORY_RESERVED4 LOG_CATEGORY_RESERVED5 LOG_CATEGORY_RESERVED6 LOG_CATEGORY_RESERVED7 LOG_CATEGORY_RESERVED8 LOG_CATEGORY_RESERVED9 LOG_CATEGORY_RESERVED10 LOG_CATEGORY_CUSTOM )
View Source
const ( LOG_PRIORITY_VERBOSE = iota + 1 LOG_PRIORITY_DEBUG LOG_PRIORITY_INFO LOG_PRIORITY_WARN LOG_PRIORITY_ERROR LOG_PRIORITY_CRITICAL NUM_LOG_PRIORITIES )
View Source
const ( SYSTEM_CURSOR_ARROW = C.SDL_SYSTEM_CURSOR_ARROW SYSTEM_CURSOR_IBEAM = C.SDL_SYSTEM_CURSOR_IBEAM SYSTEM_CURSOR_WAIT = C.SDL_SYSTEM_CURSOR_WAIT SYSTEM_CURSOR_CROSSHAIR = C.SDL_SYSTEM_CURSOR_CROSSHAIR SYSTEM_CURSOR_WAITARROW = C.SDL_SYSTEM_CURSOR_WAITARROW SYSTEM_CURSOR_SIZENWSE = C.SDL_SYSTEM_CURSOR_SIZENWSE SYSTEM_CURSOR_SIZENESW = C.SDL_SYSTEM_CURSOR_SIZENESW SYSTEM_CURSOR_SIZEWE = C.SDL_SYSTEM_CURSOR_SIZEWE SYSTEM_CURSOR_SIZENS = C.SDL_SYSTEM_CURSOR_SIZENS SYSTEM_CURSOR_SIZEALL = C.SDL_SYSTEM_CURSOR_SIZEALL SYSTEM_CURSOR_NO = C.SDL_SYSTEM_CURSOR_NO SYSTEM_CURSOR_HAND = C.SDL_SYSTEM_CURSOR_HAND NUM_SYSTEM_CURSORS = C.SDL_NUM_SYSTEM_CURSORS )
SystemCursor
View Source
const ( BUTTON_LEFT = C.SDL_BUTTON_LEFT BUTTON_MIDDLE = C.SDL_BUTTON_MIDDLE BUTTON_RIGHT = C.SDL_BUTTON_RIGHT BUTTON_X1 = C.SDL_BUTTON_X1 BUTTON_X2 = C.SDL_BUTTON_X2 )
View Source
const ( PIXELTYPE_UNKNOWN = C.SDL_PIXELTYPE_UNKNOWN PIXELTYPE_INDEX1 = C.SDL_PIXELTYPE_INDEX1 PIXELTYPE_INDEX4 = C.SDL_PIXELTYPE_INDEX4 PIXELTYPE_INDEX8 = C.SDL_PIXELTYPE_INDEX8 PIXELTYPE_PACKED8 = C.SDL_PIXELTYPE_PACKED8 PIXELTYPE_PACKED16 = C.SDL_PIXELTYPE_PACKED16 PIXELTYPE_PACKED32 = C.SDL_PIXELTYPE_PACKED32 PIXELTYPE_ARRAYU8 = C.SDL_PIXELTYPE_ARRAYU8 PIXELTYPE_ARRAYU16 = C.SDL_PIXELTYPE_ARRAYU16 PIXELTYPE_ARRAYU32 = C.SDL_PIXELTYPE_ARRAYU32 PIXELTYPE_ARRAYF16 = C.SDL_PIXELTYPE_ARRAYF16 PIXELTYPE_ARRAYF32 = C.SDL_PIXELTYPE_ARRAYF32 )
View Source
const ( BITMAPORDER_NONE = C.SDL_BITMAPORDER_NONE BITMAPORDER_4321 = C.SDL_BITMAPORDER_4321 BITMAPORDER_1234 = C.SDL_BITMAPORDER_1234 )
* Bitmap pixel order high bit -> low bit.
View Source
const ( PACKEDORDER_NONE = C.SDL_PACKEDORDER_NONE PACKEDORDER_XRGB = C.SDL_PACKEDORDER_XRGB PACKEDORDER_RGBX = C.SDL_PACKEDORDER_RGBX PACKEDORDER_ARGB = C.SDL_PACKEDORDER_ARGB PACKEDORDER_RGBA = C.SDL_PACKEDORDER_RGBA PACKEDORDER_XBGR = C.SDL_PACKEDORDER_XBGR PACKEDORDER_BGRX = C.SDL_PACKEDORDER_BGRX PACKEDORDER_ABGR = C.SDL_PACKEDORDER_ABGR PACKEDORDER_BGRA = C.SDL_PACKEDORDER_BGRA )
* Packed component order high bit -> low bit.
View Source
const ( ARRAYORDER_NONE = C.SDL_ARRAYORDER_NONE ARRAYORDER_RGB = C.SDL_ARRAYORDER_RGB ARRAYORDER_RGBA = C.SDL_ARRAYORDER_RGBA ARRAYORDER_ARGB = C.SDL_ARRAYORDER_ARGB ARRAYORDER_BGR = C.SDL_ARRAYORDER_BGR ARRAYORDER_BGRA = C.SDL_ARRAYORDER_BGRA ARRAYORDER_ABGR = C.SDL_ARRAYORDER_ABGR )
* Array component order low byte -> high byte.
View Source
const ( PACKEDLAYOUT_NONE = C.SDL_PACKEDLAYOUT_NONE PACKEDLAYOUT_332 = C.SDL_PACKEDLAYOUT_332 PACKEDLAYOUT_4444 = C.SDL_PACKEDLAYOUT_4444 PACKEDLAYOUT_1555 = C.SDL_PACKEDLAYOUT_1555 PACKEDLAYOUT_5551 = C.SDL_PACKEDLAYOUT_5551 PACKEDLAYOUT_565 = C.SDL_PACKEDLAYOUT_565 PACKEDLAYOUT_8888 = C.SDL_PACKEDLAYOUT_8888 PACKEDLAYOUT_2101010 = C.SDL_PACKEDLAYOUT_2101010 PACKEDLAYOUT_1010102 = C.SDL_PACKEDLAYOUT_1010102 )
* Packed component layout.
View Source
const ( PIXELFORMAT_UNKNOWN = C.SDL_PIXELFORMAT_UNKNOWN PIXELFORMAT_INDEX1LSB = C.SDL_PIXELFORMAT_INDEX1LSB PIXELFORMAT_INDEX1MSB = C.SDL_PIXELFORMAT_INDEX1MSB PIXELFORMAT_INDEX4LSB = C.SDL_PIXELFORMAT_INDEX4LSB PIXELFORMAT_INDEX4MSB = C.SDL_PIXELFORMAT_INDEX4MSB PIXELFORMAT_INDEX8 = C.SDL_PIXELFORMAT_INDEX8 PIXELFORMAT_RGB332 = C.SDL_PIXELFORMAT_RGB332 PIXELFORMAT_RGB444 = C.SDL_PIXELFORMAT_RGB444 PIXELFORMAT_RGB555 = C.SDL_PIXELFORMAT_RGB555 PIXELFORMAT_BGR555 = C.SDL_PIXELFORMAT_BGR555 PIXELFORMAT_ARGB4444 = C.SDL_PIXELFORMAT_ARGB4444 PIXELFORMAT_RGBA4444 = C.SDL_PIXELFORMAT_RGBA4444 PIXELFORMAT_ABGR4444 = C.SDL_PIXELFORMAT_ABGR4444 PIXELFORMAT_BGRA4444 = C.SDL_PIXELFORMAT_BGRA4444 PIXELFORMAT_ARGB1555 = C.SDL_PIXELFORMAT_ARGB1555 PIXELFORMAT_RGBA5551 = C.SDL_PIXELFORMAT_RGBA5551 PIXELFORMAT_ABGR1555 = C.SDL_PIXELFORMAT_ABGR1555 PIXELFORMAT_BGRA5551 = C.SDL_PIXELFORMAT_BGRA5551 PIXELFORMAT_RGB565 = C.SDL_PIXELFORMAT_RGB565 PIXELFORMAT_BGR565 = C.SDL_PIXELFORMAT_BGR565 PIXELFORMAT_RGB24 = C.SDL_PIXELFORMAT_RGB24 PIXELFORMAT_BGR24 = C.SDL_PIXELFORMAT_BGR24 PIXELFORMAT_RGB888 = C.SDL_PIXELFORMAT_RGB888 PIXELFORMAT_RGBX8888 = C.SDL_PIXELFORMAT_RGBX8888 PIXELFORMAT_BGR888 = C.SDL_PIXELFORMAT_BGR888 PIXELFORMAT_BGRX8888 = C.SDL_PIXELFORMAT_BGRX8888 PIXELFORMAT_ARGB8888 = C.SDL_PIXELFORMAT_ARGB8888 PIXELFORMAT_RGBA8888 = C.SDL_PIXELFORMAT_RGBA8888 PIXELFORMAT_ABGR8888 = C.SDL_PIXELFORMAT_ABGR8888 PIXELFORMAT_BGRA8888 = C.SDL_PIXELFORMAT_BGRA8888 PIXELFORMAT_ARGB2101010 = C.SDL_PIXELFORMAT_ARGB2101010 PIXELFORMAT_YV12 = C.SDL_PIXELFORMAT_YV12 PIXELFORMAT_IYUV = C.SDL_PIXELFORMAT_IYUV PIXELFORMAT_YUY2 = C.SDL_PIXELFORMAT_YUY2 PIXELFORMAT_UYVY = C.SDL_PIXELFORMAT_UYVY PIXELFORMAT_YVYU = C.SDL_PIXELFORMAT_YVYU )
View Source
const ( POWERSTATE_UNKNOWN = C.SDL_POWERSTATE_UNKNOWN POWERSTATE_ON_BATTERY = C.SDL_POWERSTATE_ON_BATTERY POWERSTATE_NO_BATTERY = C.SDL_POWERSTATE_NO_BATTERY POWERSTATE_CHARGING = C.SDL_POWERSTATE_CHARGING POWERSTATE_CHARGED = C.SDL_POWERSTATE_CHARGED )
View Source
const ( RENDERER_SOFTWARE = C.SDL_RENDERER_SOFTWARE RENDERER_ACCELERATED = C.SDL_RENDERER_ACCELERATED RENDERER_PRESENTVSYNC = C.SDL_RENDERER_PRESENTVSYNC RENDERER_TARGETTEXTURE = C.SDL_RENDERER_TARGETTEXTURE TEXTUREACCESS_STATIC = C.SDL_TEXTUREACCESS_STATIC TEXTUREACCESS_STREAMING = C.SDL_TEXTUREACCESS_STREAMING TEXTUREACCESS_TARGET = C.SDL_TEXTUREACCESS_TARGET TEXTUREMODULATE_NONE = C.SDL_TEXTUREMODULATE_NONE TEXTUREMODULATE_COLOR = C.SDL_TEXTUREMODULATE_COLOR TEXTUREMODULATE_ALPHA = C.SDL_TEXTUREMODULATE_ALPHA FLIP_NONE = C.SDL_FLIP_NONE FLIP_HORIZONTAL = C.SDL_FLIP_HORIZONTAL FLIP_VERTICAL = C.SDL_FLIP_VERTICAL )
View Source
const ( RWOPS_UNKNOWN = 0 RWOPS_WINFILE = 1 RWOPS_STDFILE = 2 RWOPS_JNIFILE = 3 RWOPS_MEMORY = 4 RWOPS_MEMORY_RO = 5 )
RWops Types
View Source
const ( RW_SEEK_SET = C.RW_SEEK_SET RW_SEEK_CUR = C.RW_SEEK_CUR RW_SEEK_END = C.RW_SEEK_END )
View Source
const ( SCANCODE_UNKNOWN = 0 SCANCODE_A = C.SDL_SCANCODE_A SCANCODE_B = C.SDL_SCANCODE_B SCANCODE_C = C.SDL_SCANCODE_C SCANCODE_D = C.SDL_SCANCODE_D SCANCODE_E = C.SDL_SCANCODE_E SCANCODE_F = C.SDL_SCANCODE_F SCANCODE_G = C.SDL_SCANCODE_G SCANCODE_H = C.SDL_SCANCODE_H SCANCODE_I = C.SDL_SCANCODE_I SCANCODE_J = C.SDL_SCANCODE_J SCANCODE_K = C.SDL_SCANCODE_K SCANCODE_L = C.SDL_SCANCODE_L SCANCODE_M = C.SDL_SCANCODE_M SCANCODE_N = C.SDL_SCANCODE_N SCANCODE_O = C.SDL_SCANCODE_O SCANCODE_P = C.SDL_SCANCODE_P SCANCODE_Q = C.SDL_SCANCODE_Q SCANCODE_R = C.SDL_SCANCODE_R SCANCODE_S = C.SDL_SCANCODE_S SCANCODE_T = C.SDL_SCANCODE_T SCANCODE_U = C.SDL_SCANCODE_U SCANCODE_V = C.SDL_SCANCODE_V SCANCODE_W = C.SDL_SCANCODE_W SCANCODE_X = C.SDL_SCANCODE_X SCANCODE_Y = C.SDL_SCANCODE_Y SCANCODE_Z = C.SDL_SCANCODE_Z SCANCODE_1 = C.SDL_SCANCODE_1 SCANCODE_2 = C.SDL_SCANCODE_2 SCANCODE_3 = C.SDL_SCANCODE_3 SCANCODE_4 = C.SDL_SCANCODE_4 SCANCODE_5 = C.SDL_SCANCODE_5 SCANCODE_6 = C.SDL_SCANCODE_6 SCANCODE_7 = C.SDL_SCANCODE_7 SCANCODE_8 = C.SDL_SCANCODE_8 SCANCODE_9 = C.SDL_SCANCODE_9 SCANCODE_0 = C.SDL_SCANCODE_B SCANCODE_RETURN = C.SDL_SCANCODE_RETURN SCANCODE_ESCAPE = C.SDL_SCANCODE_ESCAPE SCANCODE_BACKSPACE = C.SDL_SCANCODE_BACKSPACE SCANCODE_TAB = C.SDL_SCANCODE_TAB SCANCODE_SPACE = C.SDL_SCANCODE_SPACE SCANCODE_MINUS = C.SDL_SCANCODE_MINUS SCANCODE_EQUALS = C.SDL_SCANCODE_EQUALS SCANCODE_LEFTBRACKET = C.SDL_SCANCODE_LEFTBRACKET SCANCODE_RIGHTBRACKET = C.SDL_SCANCODE_RIGHTBRACKET SCANCODE_BACKSLASH = C.SDL_SCANCODE_BACKSLASH SCANCODE_NONUSHASH = C.SDL_SCANCODE_NONUSHASH SCANCODE_SEMICOLON = C.SDL_SCANCODE_SEMICOLON SCANCODE_APOSTROPHE = C.SDL_SCANCODE_APOSTROPHE SCANCODE_GRAVE = C.SDL_SCANCODE_GRAVE SCANCODE_COMMA = C.SDL_SCANCODE_COMMA SCANCODE_PERIOD = C.SDL_SCANCODE_PERIOD SCANCODE_SLASH = C.SDL_SCANCODE_SLASH SCANCODE_CAPSLOCK = C.SDL_SCANCODE_CAPSLOCK SCANCODE_F1 = C.SDL_SCANCODE_F1 SCANCODE_F2 = C.SDL_SCANCODE_F2 SCANCODE_F3 = C.SDL_SCANCODE_F3 SCANCODE_F4 = C.SDL_SCANCODE_F4 SCANCODE_F5 = C.SDL_SCANCODE_F5 SCANCODE_F6 = C.SDL_SCANCODE_F6 SCANCODE_F7 = C.SDL_SCANCODE_F7 SCANCODE_F8 = C.SDL_SCANCODE_F8 SCANCODE_F9 = C.SDL_SCANCODE_F9 SCANCODE_F10 = C.SDL_SCANCODE_F10 SCANCODE_F11 = C.SDL_SCANCODE_F11 SCANCODE_F12 = C.SDL_SCANCODE_F12 SCANCODE_PRINTSCREEN = C.SDL_SCANCODE_PRINTSCREEN SCANCODE_SCROLLLOCK = C.SDL_SCANCODE_SCROLLLOCK SCANCODE_PAUSE = C.SDL_SCANCODE_PAUSE SCANCODE_INSERT = C.SDL_SCANCODE_INSERT SCANCODE_HOME = C.SDL_SCANCODE_HOME SCANCODE_PAGEUP = C.SDL_SCANCODE_PAGEUP SCANCODE_DELETE = C.SDL_SCANCODE_DELETE SCANCODE_END = C.SDL_SCANCODE_END SCANCODE_PAGEDOWN = C.SDL_SCANCODE_PAGEDOWN SCANCODE_RIGHT = C.SDL_SCANCODE_RIGHT SCANCODE_LEFT = C.SDL_SCANCODE_LEFT SCANCODE_DOWN = C.SDL_SCANCODE_DOWN SCANCODE_UP = C.SDL_SCANCODE_UP SCANCODE_NUMLOCKCLEAR = C.SDL_SCANCODE_NUMLOCKCLEAR SCANCODE_KP_DIVIDE = C.SDL_SCANCODE_KP_DIVIDE SCANCODE_KP_MULTIPLY = C.SDL_SCANCODE_KP_MULTIPLY SCANCODE_KP_MINUS = C.SDL_SCANCODE_KP_MINUS SCANCODE_KP_PLUS = C.SDL_SCANCODE_KP_PLUS SCANCODE_KP_ENTER = C.SDL_SCANCODE_KP_ENTER SCANCODE_KP_1 = C.SDL_SCANCODE_KP_1 SCANCODE_KP_2 = C.SDL_SCANCODE_KP_2 SCANCODE_KP_3 = C.SDL_SCANCODE_KP_3 SCANCODE_KP_4 = C.SDL_SCANCODE_KP_4 SCANCODE_KP_5 = C.SDL_SCANCODE_KP_5 SCANCODE_KP_6 = C.SDL_SCANCODE_KP_6 SCANCODE_KP_7 = C.SDL_SCANCODE_KP_7 SCANCODE_KP_8 = C.SDL_SCANCODE_KP_8 SCANCODE_KP_9 = C.SDL_SCANCODE_KP_9 SCANCODE_KP_0 = C.SDL_SCANCODE_KP_0 SCANCODE_KP_PERIOD = C.SDL_SCANCODE_KP_PERIOD SCANCODE_NONUSBACKSLASH = C.SDL_SCANCODE_NONUSBACKSLASH SCANCODE_APPLICATION = C.SDL_SCANCODE_APPLICATION SCANCODE_POWER = C.SDL_SCANCODE_POWER SCANCODE_KP_EQUALS = C.SDL_SCANCODE_KP_EQUALS SCANCODE_F13 = C.SDL_SCANCODE_F13 SCANCODE_F14 = C.SDL_SCANCODE_F14 SCANCODE_F15 = C.SDL_SCANCODE_F15 SCANCODE_F16 = C.SDL_SCANCODE_F16 SCANCODE_F17 = C.SDL_SCANCODE_F17 SCANCODE_F18 = C.SDL_SCANCODE_F18 SCANCODE_F19 = C.SDL_SCANCODE_F19 SCANCODE_F20 = C.SDL_SCANCODE_F20 SCANCODE_F21 = C.SDL_SCANCODE_F21 SCANCODE_F22 = C.SDL_SCANCODE_F22 SCANCODE_F23 = C.SDL_SCANCODE_F23 SCANCODE_F24 = C.SDL_SCANCODE_F24 SCANCODE_EXECUTE = C.SDL_SCANCODE_EXECUTE SCANCODE_HELP = C.SDL_SCANCODE_HELP SCANCODE_MENU = C.SDL_SCANCODE_MENU SCANCODE_SELECT = C.SDL_SCANCODE_SELECT SCANCODE_STOP = C.SDL_SCANCODE_STOP SCANCODE_AGAIN = C.SDL_SCANCODE_AGAIN SCANCODE_UNDO = C.SDL_SCANCODE_UNDO SCANCODE_CUT = C.SDL_SCANCODE_CUT SCANCODE_COPY = C.SDL_SCANCODE_COPY SCANCODE_PASTE = C.SDL_SCANCODE_PASTE SCANCODE_FIND = C.SDL_SCANCODE_FIND SCANCODE_MUTE = C.SDL_SCANCODE_MUTE SCANCODE_VOLUMEUP = C.SDL_SCANCODE_VOLUMEUP SCANCODE_VOLUMEDOWN = C.SDL_SCANCODE_VOLUMEDOWN SCANCODE_KP_COMMA = C.SDL_SCANCODE_KP_COMMA SCANCODE_KP_EQUALSAS400 = C.SDL_SCANCODE_KP_EQUALSAS400 SCANCODE_INTERNATIONAL1 = C.SDL_SCANCODE_INTERNATIONAL1 SCANCODE_INTERNATIONAL2 = C.SDL_SCANCODE_INTERNATIONAL2 SCANCODE_INTERNATIONAL3 = C.SDL_SCANCODE_INTERNATIONAL3 SCANCODE_INTERNATIONAL4 = C.SDL_SCANCODE_INTERNATIONAL4 SCANCODE_INTERNATIONAL5 = C.SDL_SCANCODE_INTERNATIONAL5 SCANCODE_INTERNATIONAL6 = C.SDL_SCANCODE_INTERNATIONAL6 SCANCODE_INTERNATIONAL7 = C.SDL_SCANCODE_INTERNATIONAL7 SCANCODE_INTERNATIONAL8 = C.SDL_SCANCODE_INTERNATIONAL8 SCANCODE_INTERNATIONAL9 = C.SDL_SCANCODE_INTERNATIONAL9 SCANCODE_LANG1 = C.SDL_SCANCODE_LANG1 SCANCODE_LANG2 = C.SDL_SCANCODE_LANG2 SCANCODE_LANG3 = C.SDL_SCANCODE_LANG3 SCANCODE_LANG4 = C.SDL_SCANCODE_LANG4 SCANCODE_LANG5 = C.SDL_SCANCODE_LANG5 SCANCODE_LANG6 = C.SDL_SCANCODE_LANG6 SCANCODE_LANG7 = C.SDL_SCANCODE_LANG7 SCANCODE_LANG8 = C.SDL_SCANCODE_LANG8 SCANCODE_LANG9 = C.SDL_SCANCODE_LANG9 SCANCODE_ALTERASE = C.SDL_SCANCODE_ALTERASE SCANCODE_SYSREQ = C.SDL_SCANCODE_SYSREQ SCANCODE_CANCEL = C.SDL_SCANCODE_CANCEL SCANCODE_CLEAR = C.SDL_SCANCODE_CLEAR SCANCODE_PRIOR = C.SDL_SCANCODE_PRIOR SCANCODE_RETURN2 = C.SDL_SCANCODE_RETURN2 SCANCODE_SEPARATOR = C.SDL_SCANCODE_SEPARATOR SCANCODE_OUT = C.SDL_SCANCODE_OUT SCANCODE_OPER = C.SDL_SCANCODE_OPER SCANCODE_CLEARAGAIN = C.SDL_SCANCODE_CLEARAGAIN SCANCODE_CRSEL = C.SDL_SCANCODE_CRSEL SCANCODE_EXSEL = C.SDL_SCANCODE_EXSEL SCANCODE_KP_00 = C.SDL_SCANCODE_KP_00 SCANCODE_KP_000 = C.SDL_SCANCODE_KP_000 SCANCODE_THOUSANDSSEPARATOR = C.SDL_SCANCODE_THOUSANDSSEPARATOR SCANCODE_DECIMALSEPARATOR = C.SDL_SCANCODE_DECIMALSEPARATOR SCANCODE_CURRENCYUNIT = C.SDL_SCANCODE_CURRENCYUNIT SCANCODE_CURRENCYSUBUNIT = C.SDL_SCANCODE_CURRENCYSUBUNIT SCANCODE_KP_LEFTPAREN = C.SDL_SCANCODE_KP_LEFTPAREN SCANCODE_KP_RIGHTPAREN = C.SDL_SCANCODE_KP_RIGHTPAREN SCANCODE_KP_LEFTBRACE = C.SDL_SCANCODE_KP_LEFTBRACE SCANCODE_KP_RIGHTBRACE = C.SDL_SCANCODE_KP_RIGHTBRACE SCANCODE_KP_TAB = C.SDL_SCANCODE_KP_TAB SCANCODE_KP_BACKSPACE = C.SDL_SCANCODE_KP_BACKSPACE SCANCODE_KP_A = C.SDL_SCANCODE_KP_A SCANCODE_KP_B = C.SDL_SCANCODE_KP_B SCANCODE_KP_C = C.SDL_SCANCODE_KP_C SCANCODE_KP_D = C.SDL_SCANCODE_KP_D SCANCODE_KP_E = C.SDL_SCANCODE_KP_E SCANCODE_KP_F = C.SDL_SCANCODE_KP_F SCANCODE_KP_XOR = C.SDL_SCANCODE_KP_XOR SCANCODE_KP_POWER = C.SDL_SCANCODE_KP_POWER SCANCODE_KP_PERCENT = C.SDL_SCANCODE_KP_PERCENT SCANCODE_KP_LESS = C.SDL_SCANCODE_KP_LESS SCANCODE_KP_GREATER = C.SDL_SCANCODE_KP_GREATER SCANCODE_KP_AMPERSAND = C.SDL_SCANCODE_KP_AMPERSAND SCANCODE_KP_DBLAMPERSAND = C.SDL_SCANCODE_KP_DBLAMPERSAND SCANCODE_KP_VERTICALBAR = C.SDL_SCANCODE_KP_VERTICALBAR SCANCODE_KP_DBLVERTICALBAR = C.SDL_SCANCODE_KP_DBLVERTICALBAR SCANCODE_KP_COLON = C.SDL_SCANCODE_KP_COLON SCANCODE_KP_HASH = C.SDL_SCANCODE_KP_HASH SCANCODE_KP_SPACE = C.SDL_SCANCODE_KP_SPACE SCANCODE_KP_AT = C.SDL_SCANCODE_KP_AT SCANCODE_KP_EXCLAM = C.SDL_SCANCODE_KP_EXCLAM SCANCODE_KP_MEMSTORE = C.SDL_SCANCODE_KP_MEMSTORE SCANCODE_KP_MEMRECALL = C.SDL_SCANCODE_KP_MEMRECALL SCANCODE_KP_MEMCLEAR = C.SDL_SCANCODE_KP_MEMCLEAR SCANCODE_KP_MEMADD = C.SDL_SCANCODE_KP_MEMADD SCANCODE_KP_MEMSUBTRACT = C.SDL_SCANCODE_KP_MEMSUBTRACT SCANCODE_KP_MEMMULTIPLY = C.SDL_SCANCODE_KP_MEMMULTIPLY SCANCODE_KP_MEMDIVIDE = C.SDL_SCANCODE_KP_MEMDIVIDE SCANCODE_KP_PLUSMINUS = C.SDL_SCANCODE_KP_PLUSMINUS SCANCODE_KP_CLEAR = C.SDL_SCANCODE_KP_CLEAR SCANCODE_KP_CLEARENTRY = C.SDL_SCANCODE_KP_CLEARENTRY SCANCODE_KP_BINARY = C.SDL_SCANCODE_KP_BINARY SCANCODE_KP_OCTAL = C.SDL_SCANCODE_KP_OCTAL SCANCODE_KP_DECIMAL = C.SDL_SCANCODE_KP_DECIMAL SCANCODE_KP_HEXADECIMAL = C.SDL_SCANCODE_KP_HEXADECIMAL SCANCODE_LCTRL = C.SDL_SCANCODE_LCTRL SCANCODE_LSHIFT = C.SDL_SCANCODE_LSHIFT SCANCODE_LALT = C.SDL_SCANCODE_LALT SCANCODE_LGUI = C.SDL_SCANCODE_LGUI SCANCODE_RCTRL = C.SDL_SCANCODE_RCTRL SCANCODE_RSHIFT = C.SDL_SCANCODE_RSHIFT SCANCODE_RALT = C.SDL_SCANCODE_RALT SCANCODE_RGUI = C.SDL_SCANCODE_RGUI SCANCODE_MODE = C.SDL_SCANCODE_MODE SCANCODE_AUDIONEXT = C.SDL_SCANCODE_AUDIONEXT SCANCODE_AUDIOPREV = C.SDL_SCANCODE_AUDIOPREV SCANCODE_AUDIOSTOP = C.SDL_SCANCODE_AUDIOSTOP SCANCODE_AUDIOPLAY = C.SDL_SCANCODE_AUDIOPLAY SCANCODE_AUDIOMUTE = C.SDL_SCANCODE_AUDIOMUTE SCANCODE_MEDIASELECT = C.SDL_SCANCODE_MEDIASELECT SCANCODE_WWW = C.SDL_SCANCODE_WWW SCANCODE_MAIL = C.SDL_SCANCODE_MAIL SCANCODE_CALCULATOR = C.SDL_SCANCODE_CALCULATOR SCANCODE_COMPUTER = C.SDL_SCANCODE_COMPUTER SCANCODE_AC_SEARCH = C.SDL_SCANCODE_AC_SEARCH SCANCODE_AC_HOME = C.SDL_SCANCODE_AC_HOME SCANCODE_AC_BACK = C.SDL_SCANCODE_AC_BACK SCANCODE_AC_FORWARD = C.SDL_SCANCODE_AC_FORWARD SCANCODE_AC_STOP = C.SDL_SCANCODE_AC_STOP SCANCODE_AC_REFRESH = C.SDL_SCANCODE_AC_REFRESH SCANCODE_AC_BOOKMARKS = C.SDL_SCANCODE_AC_BOOKMARKS SCANCODE_BRIGHTNESSDOWN = C.SDL_SCANCODE_BRIGHTNESSDOWN SCANCODE_BRIGHTNESSUP = C.SDL_SCANCODE_BRIGHTNESSUP SCANCODE_DISPLAYSWITCH = C.SDL_SCANCODE_DISPLAYSWITCH SCANCODE_KBDILLUMTOGGLE = C.SDL_SCANCODE_KBDILLUMTOGGLE SCANCODE_KBDILLUMDOWN = C.SDL_SCANCODE_KBDILLUMDOWN SCANCODE_KBDILLUMUP = C.SDL_SCANCODE_KBDILLUMUP SCANCODE_EJECT = C.SDL_SCANCODE_EJECT SCANCODE_SLEEP = C.SDL_SCANCODE_SLEEP SCANCODE_APP1 = C.SDL_SCANCODE_APP1 SCANCODE_APP2 = C.SDL_SCANCODE_APP2 NUM_SCANCODES = C.SDL_NUM_SCANCODES )
View Source
const ( INIT_TIMER = 0x00000001 INIT_AUDIO = 0x00000010 INIT_VIDEO = 0x00000020 INIT_JOYSTICK = 0x00000200 INIT_HAPTIC = 0x00001000 INIT_GAMECONTROLLER = 0x00002000 INIT_NOPARACHUTE = 0x00100000 INIT_EVERYTHING = INIT_TIMER | INIT_AUDIO | INIT_VIDEO | INIT_JOYSTICK | INIT_HAPTIC | INIT_GAMECONTROLLER )
View Source
const ( RELEASED = 0 PRESSED = 1 )
View Source
const ( SWSURFACE = C.SDL_SWSURFACE PREALLOC = C.SDL_PREALLOC RLEACCEL = C.SDL_RLEACCEL DONTFREE = C.SDL_DONTFREE )
View Source
const ( SYSWM_UNKNOWN = C.SDL_SYSWM_UNKNOWN SYSWM_WINDOWS = C.SDL_SYSWM_WINDOWS SYSWM_X11 = C.SDL_SYSWM_X11 SYSWM_DIRECTFB = C.SDL_SYSWM_DIRECTFB SYSWM_COCOA = C.SDL_SYSWM_COCOA SYSWM_UIKIT = C.SDL_SYSWM_UIKIT SYSWM_WAYLAND = C.SDL_SYSWM_WAYLAND SYSWM_MIR = C.SDL_SYSWM_MIR )
View Source
const ( MAJOR_VERSION = C.SDL_MAJOR_VERSION MINOR_VERSION = C.SDL_MINOR_VERSION PATCHLEVEL = C.SDL_PATCHLEVEL )
View Source
const ( WINDOW_FULLSCREEN = C.SDL_WINDOW_FULLSCREEN WINDOW_OPENGL = C.SDL_WINDOW_OPENGL WINDOW_SHOWN = C.SDL_WINDOW_SHOWN WINDOW_HIDDEN = C.SDL_WINDOW_HIDDEN WINDOW_BORDERLESS = C.SDL_WINDOW_BORDERLESS WINDOW_RESIZABLE = C.SDL_WINDOW_RESIZABLE WINDOW_MINIMIZED = C.SDL_WINDOW_MINIMIZED WINDOW_MAXIMIZED = C.SDL_WINDOW_MAXIMIZED WINDOW_INPUT_GRABBED = C.SDL_WINDOW_INPUT_GRABBED WINDOW_INPUT_FOCUS = C.SDL_WINDOW_INPUT_FOCUS WINDOW_MOUSE_FOCUS = C.SDL_WINDOW_MOUSE_FOCUS WINDOW_FULLSCREEN_DESKTOP = C.SDL_WINDOW_FULLSCREEN_DESKTOP WINDOW_FOREIGN = C.SDL_WINDOW_FOREIGN )
View Source
const ( WINDOWEVENT_NONE = C.SDL_WINDOWEVENT_NONE WINDOWEVENT_SHOWN = C.SDL_WINDOWEVENT_SHOWN WINDOWEVENT_HIDDEN = C.SDL_WINDOWEVENT_HIDDEN WINDOWEVENT_EXPOSED = C.SDL_WINDOWEVENT_EXPOSED WINDOWEVENT_MOVED = C.SDL_WINDOWEVENT_MOVED WINDOWEVENT_RESIZED = C.SDL_WINDOWEVENT_RESIZED WINDOWEVENT_SIZE_CHANGED = C.SDL_WINDOWEVENT_SIZE_CHANGED WINDOWEVENT_MINIMIZED = C.SDL_WINDOWEVENT_MINIMIZED WINDOWEVENT_MAXIMIZED = C.SDL_WINDOWEVENT_MAXIMIZED WINDOWEVENT_RESTORED = C.SDL_WINDOWEVENT_RESTORED WINDOWEVENT_ENTER = C.SDL_WINDOWEVENT_ENTER WINDOWEVENT_LEAVE = C.SDL_WINDOWEVENT_LEAVE WINDOWEVENT_FOCUS_GAINED = C.SDL_WINDOWEVENT_FOCUS_GAINED WINDOWEVENT_FOCUS_LOST = C.SDL_WINDOWEVENT_FOCUS_LOST WINDOWEVENT_CLOSE = C.SDL_WINDOWEVENT_CLOSE )
View Source
const ( WINDOWPOS_UNDEFINED_MASK = C.SDL_WINDOWPOS_UNDEFINED_MASK WINDOWPOS_UNDEFINED = C.SDL_WINDOWPOS_UNDEFINED WINDOWPOS_CENTERED_MASK = C.SDL_WINDOWPOS_CENTERED_MASK WINDOWPOS_CENTERED = C.SDL_WINDOWPOS_CENTERED )
View Source
const ( GL_RED_SIZE = C.SDL_GL_RED_SIZE GL_GREEN_SIZE = C.SDL_GL_GREEN_SIZE GL_BLUE_SIZE = C.SDL_GL_BLUE_SIZE GL_ALPHA_SIZE = C.SDL_GL_ALPHA_SIZE GL_BUFFER_SIZE = C.SDL_GL_BUFFER_SIZE GL_DOUBLEBUFFER = C.SDL_GL_DOUBLEBUFFER GL_DEPTH_SIZE = C.SDL_GL_DEPTH_SIZE GL_STENCIL_SIZE = C.SDL_GL_STENCIL_SIZE GL_ACCUM_RED_SIZE = C.SDL_GL_ACCUM_RED_SIZE GL_ACCUM_GREEN_SIZE = C.SDL_GL_ACCUM_GREEN_SIZE GL_ACCUM_BLUE_SIZE = C.SDL_GL_ACCUM_BLUE_SIZE GL_ACCUM_ALPHA_SIZE = C.SDL_GL_ALPHA_SIZE GL_STEREO = C.SDL_GL_STEREO GL_MULTISAMPLEBUFFERS = C.SDL_GL_MULTISAMPLEBUFFERS GL_MULTISAMPLESAMPLES = C.SDL_GL_MULTISAMPLESAMPLES GL_ACCELERATED_VISUAL = C.SDL_GL_ACCELERATED_VISUAL GL_RETAINED_BACKING = C.SDL_GL_RETAINED_BACKING GL_CONTEXT_MAJOR_VERSION = C.SDL_GL_CONTEXT_MAJOR_VERSION GL_CONTEXT_MINOR_VERSION = C.SDL_GL_CONTEXT_MINOR_VERSION GL_CONTEXT_EGL = C.SDL_GL_CONTEXT_EGL GL_CONTEXT_FLAGS = C.SDL_GL_CONTEXT_FLAGS GL_CONTEXT_PROFILE_MASK = C.SDL_GL_CONTEXT_PROFILE_MASK GL_SHARE_WITH_CURRENT_CONTEXT = C.SDL_GL_SHARE_WITH_CURRENT_CONTEXT )
View Source
const ( GL_CONTEXT_PROFILE_CORE = C.SDL_GL_CONTEXT_PROFILE_CORE GL_CONTEXT_PROFILE_COMPATIBILITY = C.SDL_GL_CONTEXT_PROFILE_COMPATIBILITY GL_CONTEXT_PROFILE_ES = C.SDL_GL_CONTEXT_PROFILE_ES )
View Source
const ( GL_CONTEXT_DEBUG_FLAG = C.SDL_GL_CONTEXT_DEBUG_FLAG GL_CONTEXT_FORWARD_COMPATIBLE_FLAG = C.SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG GL_CONTEXT_ROBUST_ACCESS_FLAG = C.SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG GL_CONTEXT_RESET_ISOLATION_FLAG = C.SDL_GL_CONTEXT_RESET_ISOLATION_FLAG )
View Source
const CACHELINE_SIZE = C.SDL_CACHELINE_SIZE
View Source
const K_SCANCODE_MASK = 1 << 30
View Source
const MIX_MAXVOLUME = C.SDL_MIX_MAXVOLUME
View Source
const TOUCH_MOUSEID = C.SDL_TOUCH_MOUSEID
Variables ¶
This section is empty.
Functions ¶
func BuildAudioCVT ¶
func BuildAudioCVT(cvt *AudioCVT, srcFormat AudioFormat, srcChannels uint8, srcRate int, dstFormat AudioFormat, dstChannels uint8, dstRate int) int
func ButtonLMask ¶
func ButtonLMask() uint32
func ButtonMMask ¶
func ButtonMMask() uint32
func ButtonRMask ¶
func ButtonRMask() uint32
func ButtonX1Mask ¶
func ButtonX1Mask() uint32
func ButtonX2Mask ¶
func ButtonX2Mask() uint32
func COMPILEDVERSION ¶
func COMPILEDVERSION() int
func ClearError ¶
func ClearError()
func ClearHints ¶
func ClearHints()
func CloseAudio ¶
func CloseAudio()
func CloseAudioDevice ¶
func CloseAudioDevice(dev AudioDeviceID)
func ConvertAudio ¶
func ConvertPixels ¶
func CreateWindowAndRenderer ¶
func DisableScreenSaver ¶
func DisableScreenSaver()
func EnableScreenSaver ¶
func EnableScreenSaver()
func EnclosePoints ¶
func EventState ¶
func FlushEvent ¶
func FlushEvent(type_ uint32)
func FlushEvents ¶
func FlushEvents(minType, maxType uint32)
func FreeCursor ¶
func FreeCursor(cursor *Cursor)
func GL_DeleteContext ¶
func GL_DeleteContext(context GLContext)
func GL_ExtensionSupported ¶
func GL_GetAttribute ¶
func GL_GetProcAddress ¶
func GL_GetSwapInterval ¶
func GL_GetSwapInterval() int
func GL_LoadLibrary ¶
func GL_MakeCurrent ¶
func GL_SetAttribute ¶
func GL_SetSwapInterval ¶
func GL_SwapWindow ¶
func GL_SwapWindow(window *Window)
func GL_UnloadLibrary ¶
func GL_UnloadLibrary()
func GameControllerGetStringForAxis ¶
func GameControllerGetStringForAxis(axis GameControllerAxis) string
func GameControllerGetStringForButton ¶
func GameControllerGetStringForButton(btn GameControllerButton) string
func GameControllerMapping ¶
func GameControllerMapping(ctrl *GameController) string
func GameControllerMappingForGUID ¶
func GameControllerMappingForGUID(guid JoystickGUID) string
func GameControllerUpdate ¶
func GameControllerUpdate()
func GetAudioDeviceName ¶
func GetAudioDriver ¶
func GetBasePath ¶
func GetBasePath() string
func GetCPUCacheLineSize ¶
func GetCPUCacheLineSize() int
func GetCPUCount ¶
func GetCPUCount() int
func GetClipboardText ¶
func GetClipboardText() string
func GetCurrentAudioDriver ¶
func GetCurrentAudioDriver() string
func GetCurrentDisplayMode ¶
func GetCurrentDisplayMode(displayIndex int, mode *DisplayMode) int
func GetCurrentVideoDriver ¶
func GetCurrentVideoDriver() string
func GetDesktopDisplayMode ¶
func GetDesktopDisplayMode(displayIndex int, mode *DisplayMode) int
func GetDisplayBounds ¶
func GetDisplayMode ¶
func GetDisplayMode(displayIndex int, modeIndex int, mode *DisplayMode) int
func GetEventState ¶
func GetKeyName ¶
func GetKeyboardState ¶
func GetKeyboardState() []uint8
func GetMouseState ¶
func GetNumAudioDevices ¶
func GetNumAudioDrivers ¶
func GetNumAudioDrivers() int
func GetNumDisplayModes ¶
func GetNumRenderDrivers ¶
func GetNumRenderDrivers() int
func GetNumTouchDevices ¶
func GetNumTouchDevices() int
func GetNumTouchFingers ¶
func GetNumVideoDisplays ¶
func GetNumVideoDisplays() int
func GetNumVideoDrivers ¶
func GetNumVideoDrivers() int
func GetPerformanceCounter ¶
func GetPerformanceCounter() uint64
func GetPerformanceFrequency ¶
func GetPerformanceFrequency() uint64
func GetPlatform ¶
func GetPlatform() string
func GetPowerInfo ¶
func GetPrefPath ¶
func GetRelativeMouseMode ¶
func GetRelativeMouseMode() bool
func GetRelativeMouseState ¶
func GetRenderDriverInfo ¶
func GetRenderDriverInfo(index int, info *RendererInfo) int
func GetRevision ¶
func GetRevision() string
func GetRevisionNumber ¶
func GetRevisionNumber() int
func GetScancodeName ¶
func GetSystemRAM ¶
func GetSystemRAM() int
func GetVersion ¶
func GetVersion(v *Version)
func GetVideoDriver ¶
func HapticIndex ¶
func HapticName ¶
func HapticOpened ¶
func HasAltiVec ¶
func HasAltiVec() bool
func HasClipboardText ¶
func HasClipboardText() bool
func HasScreenKeyboardSupport ¶
func HasScreenKeyboardSupport() bool
func InitSubSystem ¶
func IsGameController ¶
func IsScreenKeyboardShown ¶
func IsScreenSaverEnabled ¶
func IsScreenSaverEnabled() bool
func IsTextInputActive ¶
func IsTextInputActive() bool
func JoystickEventState ¶
func JoystickGetGUIDString ¶
func JoystickGetGUIDString(guid JoystickGUID, pszGUID string, cbGUID int)
func JoystickIsHaptic ¶
func JoystickNameForIndex ¶
func LoadDollarTemplates ¶
func LoadObject ¶
func LockAudioDevice ¶
func LockAudioDevice(dev AudioDeviceID)
func LogCritical ¶
func LogMessage ¶
func LogMessage(cat int, pri LogPriority, str string, args ...interface{})
func LogResetPriorities ¶
func LogResetPriorities()
func LogSetAllPriority ¶
func LogSetAllPriority(p LogPriority)
func LogSetOutputFunction ¶
func LogSetOutputFunction(f LogOutputFunction, data interface{})
func LogSetPriority ¶
func LogSetPriority(category int, p LogPriority)
func LogVerbose ¶
func MixAudioFormat ¶
func MixAudioFormat(dst, src *uint8, format AudioFormat, len_ uint32, volume int)
func MouseIsHaptic ¶
func MouseIsHaptic() int
func NumHaptics ¶
func NumHaptics() int
func NumJoysticks ¶
func NumJoysticks() int
func OpenAudioDevice ¶
func OutOfMemory ¶
func OutOfMemory()
func PauseAudio ¶
func PauseAudio(pauseOn int)
func PauseAudioDevice ¶
func PauseAudioDevice(dev AudioDeviceID, pauseOn int)
func PeepEvents ¶
func PeepEvents(events []Event, action EventAction, minType, maxType uint32) int
func PumpEvents ¶
func PumpEvents()
func QueryTexture ¶
func QuitSubSystem ¶
func QuitSubSystem(flags uint32)
func RecordGesture ¶
func RegisterEvents ¶
func SaveAllDollarTemplates ¶
func SaveDollarTemplate ¶
func SetClipboardText ¶
func SetHintWithPriority ¶
func SetHintWithPriority(name, value string, hp HintPriority) bool
func SetModState ¶
func SetModState(mod Keymod)
func SetRelativeMouseMode ¶
func SetTextInputRect ¶
func SetTextInputRect(rect *Rect)
func ShowCursor ¶
func StartTextInput ¶
func StartTextInput()
func StopTextInput ¶
func StopTextInput()
func TestGetPlatform ¶
func TestInitQuit ¶
func UnloadObject ¶
func UnlockAudio ¶
func UnlockAudio()
func UnlockAudioDevice ¶
func UnlockAudioDevice(dev AudioDeviceID)
func Unsupported ¶
func Unsupported()
func VERSIONNUM ¶
func VERSION_ATLEAST ¶
Types ¶
type AudioCVT ¶
type AudioCVT struct { Needed int SrcFormat AudioFormat DstFormat AudioFormat RateIncr float64 Buf *uint8 Len int LenCVT int LenMult int LenRatio float64 FilterIndex int // contains filtered or unexported fields }
type AudioCallback ¶
type AudioCallback C.SDL_AudioCallback
type AudioDeviceID ¶
type AudioDeviceID uint32
type AudioFilter ¶
type AudioFilter C.SDL_AudioFilter
type AudioFormat ¶
type AudioFormat uint16
func (AudioFormat) BitSize ¶
func (format AudioFormat) BitSize() uint8
func (AudioFormat) IsBigEndian ¶
func (format AudioFormat) IsBigEndian() bool
func (AudioFormat) IsFloat ¶
func (format AudioFormat) IsFloat() bool
func (AudioFormat) IsInt ¶
func (format AudioFormat) IsInt() bool
func (AudioFormat) IsLittleEndian ¶
func (format AudioFormat) IsLittleEndian() bool
func (AudioFormat) IsSigned ¶
func (format AudioFormat) IsSigned() bool
func (AudioFormat) IsUnsigned ¶
func (format AudioFormat) IsUnsigned() bool
type AudioSpec ¶
type AudioSpec struct { Freq int Format AudioFormat Channels uint8 Silence uint8 Samples uint16 Padding uint16 Size uint32 Callback AudioCallback UserData unsafe.Pointer }
type AudioStatus ¶
type AudioStatus uint
func GetAudioDeviceStatus ¶
func GetAudioDeviceStatus(dev AudioDeviceID) AudioStatus
func GetAudioStatus ¶
func GetAudioStatus() AudioStatus
type ClipboardEvent ¶
type CommonEvent ¶
type ControllerAxisEvent ¶
type ControllerAxisEvent struct { ControllerDeviceEvent Axis uint8 Value int16 // contains filtered or unexported fields }
type ControllerButtonEvent ¶
type ControllerButtonEvent struct { ControllerDeviceEvent Button uint8 State uint8 // contains filtered or unexported fields }
type ControllerDeviceEvent ¶
type ControllerDeviceEvent struct { Type uint32 Timestamp uint32 Which JoystickID }
type Cursor ¶
type Cursor C.SDL_Cursor
func CreateColorCursor ¶
func CreateCursor ¶
func CreateSystemCursor ¶
func CreateSystemCursor(id SystemCursor) *Cursor
func GetDefaultCursor ¶
func GetDefaultCursor() *Cursor
type DisplayMode ¶
func GetClosestDisplayMode ¶
func GetClosestDisplayMode(displayIndex int, mode *DisplayMode, closest *DisplayMode) *DisplayMode
type DollarGestureEvent ¶
type EventAction ¶
type EventAction C.SDL_eventaction
type EventFilter ¶
type Finger ¶
func GetTouchFinger ¶
type FingerID ¶
type FingerID C.SDL_FingerID
type GLattr ¶
type GLattr C.SDL_GLattr
type GameController ¶
type GameController C.SDL_GameController
func GameControllerOpen ¶
func GameControllerOpen(index int) *GameController
func (*GameController) Close ¶
func (ctrl *GameController) Close()
func (*GameController) GetAttached ¶
func (ctrl *GameController) GetAttached() bool
func (*GameController) GetAxis ¶
func (ctrl *GameController) GetAxis(axis GameControllerAxis) int16
func (*GameController) GetBindForAxis ¶
func (ctrl *GameController) GetBindForAxis(axis GameControllerAxis) GameControllerButtonBind
func (*GameController) GetBindForButton ¶
func (ctrl *GameController) GetBindForButton(btn GameControllerButton) GameControllerButtonBind
func (*GameController) GetButton ¶
func (ctrl *GameController) GetButton(btn GameControllerButton) byte
func (*GameController) GetJoystick ¶
func (ctrl *GameController) GetJoystick() *Joystick
type GameControllerAxis ¶
type GameControllerAxis C.SDL_GameControllerAxis
func GameControllerGetAxisFromString ¶
func GameControllerGetAxisFromString(pchString string) GameControllerAxis
type GameControllerBindType ¶
type GameControllerBindType C.SDL_GameControllerBindType
type GameControllerButton ¶
type GameControllerButton C.SDL_GameControllerButton
func GameControllerGetButtonFromString ¶
func GameControllerGetButtonFromString(pchString string) GameControllerButton
type GameControllerButtonBind ¶
type GameControllerButtonBind C.SDL_GameControllerButtonBind
type GestureID ¶
type GestureID C.SDL_GestureID
type Haptic ¶
type Haptic C.SDL_Haptic
func HapticOpen ¶
func HapticOpenFromJoystick ¶
func HapticOpenFromMouse ¶
func HapticOpenFromMouse() *Haptic
func (*Haptic) DestroyEffect ¶
func (*Haptic) EffectSupported ¶
func (h *Haptic) EffectSupported(he *HapticEffect) int
func (*Haptic) GetEffectStatus ¶
func (*Haptic) NewEffect ¶
func (h *Haptic) NewEffect(he *HapticEffect) int
func (*Haptic) NumEffects ¶
func (*Haptic) NumEffectsPlaying ¶
func (*Haptic) RumbleInit ¶
func (*Haptic) RumbleStop ¶
func (*Haptic) RumbleSupported ¶
func (*Haptic) SetAutocenter ¶
func (*Haptic) StopEffect ¶
func (*Haptic) UpdateEffect ¶
func (h *Haptic) UpdateEffect(effect int, data *HapticEffect) int
type HapticCondition ¶
type HapticConstant ¶
type HapticCustom ¶
type HapticDirection ¶
type HapticDirection struct { Type byte // contains filtered or unexported fields }
type HapticEffect ¶
type HapticEffect interface{}
type HapticPeriodic ¶
type HapticRamp ¶
type HintPriority ¶
type HintPriority C.SDL_HintPriority
type JoyAxisEvent ¶
type JoyAxisEvent struct { JoyDeviceEvent Axis uint8 Value int16 // contains filtered or unexported fields }
type JoyBallEvent ¶
type JoyBallEvent struct { JoyDeviceEvent Ball uint8 XRel int16 YRel int16 // contains filtered or unexported fields }
type JoyButtonEvent ¶
type JoyButtonEvent struct { JoyDeviceEvent Button uint8 State uint8 // contains filtered or unexported fields }
type JoyDeviceEvent ¶
type JoyDeviceEvent struct { CommonEvent Which JoystickID }
type JoyHatEvent ¶
type JoyHatEvent struct { JoyDeviceEvent Hat uint8 Value uint8 // contains filtered or unexported fields }
type Joystick ¶
type Joystick C.SDL_Joystick
func JoystickOpen ¶
func (*Joystick) GetAttached ¶
func (*Joystick) GetGUID ¶
func (joy *Joystick) GetGUID() JoystickGUID
func (*Joystick) InstanceID ¶
func (joy *Joystick) InstanceID() JoystickID
func (*Joystick) NumButtons ¶
type JoystickGUID ¶
type JoystickGUID C.SDL_JoystickGUID
func JoystickGetDeviceGUID ¶
func JoystickGetDeviceGUID(index int) JoystickGUID
func JoystickGetGUIDFromString ¶
func JoystickGetGUIDFromString(pchGUID string) JoystickGUID
type JoystickID ¶
type JoystickID C.SDL_JoystickID
type KeyDownEvent ¶
type KeyDownEvent struct { CommonEvent WindowID uint32 State uint8 Repeat uint8 Keysym Keysym // contains filtered or unexported fields }
type KeyUpEvent ¶
type KeyUpEvent struct { CommonEvent WindowID uint32 State uint8 Repeat uint8 Keysym Keysym // contains filtered or unexported fields }
type Keymod ¶
type Keymod C.SDL_Keymod
type LogOutputFunction ¶
type LogOutputFunction func(data interface{}, cat int, pri LogPriority, message string)
func LogGetOutputFunction ¶
func LogGetOutputFunction() (LogOutputFunction, interface{})
type LogPriority ¶
type LogPriority C.SDL_LogPriority
func LogGetPriority ¶
func LogGetPriority(category int) LogPriority
type MouseButtonEvent ¶
type MouseMotionEvent ¶
type MouseWheelEvent ¶
type MouseWheelEvent struct { CommonEvent WindowID uint32 Which uint32 X int32 Y int32 }
type MultiGestureEvent ¶
type PixelFormat ¶
type PixelFormat struct { Format uint32 Palette *Palette BitsPerPixels uint8 BytesPerPixel uint8 Rmask uint32 Gmask uint32 Bmask uint32 Amask uint32 Rloss uint8 Gloss uint8 Bloss uint8 Aloss uint8 Rshift uint8 Gshift uint8 Bshift uint8 Ashift uint8 RefCount int Next *PixelFormat // contains filtered or unexported fields }
type PowerState ¶
type PowerState C.SDL_PowerState
type RWops ¶
func RWFromFile ¶
type Renderer ¶
type Renderer C.SDL_Renderer
func CreateSoftwareRenderer ¶
func (*Renderer) CreateTextureFromSurface ¶
func (*Renderer) DrawPoints ¶
func (*Renderer) GetClipRect ¶
func (*Renderer) GetDrawBlendMode ¶
func (*Renderer) GetDrawColor ¶
func (*Renderer) GetRenderTarget ¶
func (*Renderer) GetRendererInfo ¶
func (renderer *Renderer) GetRendererInfo(info *RendererInfo) int
func (*Renderer) GetRendererOutputSize ¶
func (*Renderer) GetViewport ¶
func (*Renderer) ReadPixels ¶
func (*Renderer) RenderTargetSupported ¶
func (*Renderer) SetClipRect ¶
func (*Renderer) SetDrawBlendMode ¶
func (*Renderer) SetDrawColor ¶
func (*Renderer) SetRenderTarget ¶
func (*Renderer) SetViewport ¶
type RendererFlip ¶
type RendererFlip uint
type RendererInfo ¶
type RendererInfo struct { Name string RendererInfoData }
type RendererInfoData ¶
type SW_YUVTexture ¶
type Surface ¶
type Surface struct { Flags uint32 Format *PixelFormat W int32 H int32 Pitch int UserData unsafe.Pointer Locked int LockData unsafe.Pointer ClipRect Rect RefCount int // contains filtered or unexported fields }
func CreateRGBSurface ¶
func CreateRGBSurfaceFrom ¶
func LoadBMP_RW ¶
func (*Surface) BlitScaled ¶
func (*Surface) BytesPerPixel ¶
func (*Surface) ConvertFormat ¶
func (*Surface) GetAlphaMod ¶
func (*Surface) GetBlendMode ¶
func (*Surface) GetClipRect ¶
func (*Surface) GetColorKey ¶
func (*Surface) GetColorMod ¶
func (*Surface) LowerBlitScaled ¶
func (*Surface) SetAlphaMod ¶
func (*Surface) SetBlendMode ¶
func (*Surface) SetClipRect ¶
func (*Surface) SetColorMod ¶
func (*Surface) SetPalette ¶
func (*Surface) SoftStretch ¶
type SysWMEvent ¶
type SysWMInfo ¶
type SysWMInfo struct { Version Version Subsystem uint32 // contains filtered or unexported fields }
func (*SysWMInfo) GetCocoaInfo ¶
func (*SysWMInfo) GetDFBInfo ¶
func (*SysWMInfo) GetUIKitInfo ¶
func (*SysWMInfo) GetWindowsInfo ¶
func (info *SysWMInfo) GetWindowsInfo() *WindowsInfo
func (*SysWMInfo) GetX11Info ¶
type SystemCursor ¶
type SystemCursor C.SDL_SystemCursor
type TextEditingEvent ¶
type TextEditingEvent struct { CommonEvent WindowID uint32 Text [C.SDL_TEXTINPUTEVENT_TEXT_SIZE]byte Start int32 Length int32 }
type TextInputEvent ¶
type TextInputEvent struct { CommonEvent WindowID uint32 Text [C.SDL_TEXTINPUTEVENT_TEXT_SIZE]byte }
type Texture ¶
type Texture C.SDL_Texture
func CreateTexture ¶
func (*Texture) GL_BindTexture ¶
func (*Texture) GL_UnbindTexture ¶
func (*Texture) GetAlphaMod ¶
func (*Texture) GetBlendMode ¶
func (*Texture) SetAlphaMod ¶
func (*Texture) SetBlendMode ¶
type TouchFingerEvent ¶
type Window ¶
type Window C.SDL_Window
func CreateWindow ¶
func CreateWindowFrom ¶
func GetKeyboardFocus ¶
func GetKeyboardFocus() *Window
func GetMouseFocus ¶
func GetMouseFocus() *Window
func GetWindowFromID ¶
func (*Window) GetBrightness ¶
func (*Window) GetDisplayIndex ¶
func (*Window) GetDisplayMode ¶
func (window *Window) GetDisplayMode(mode *DisplayMode) int
func (*Window) GetGammaRamp ¶
func (*Window) GetMaximumSize ¶
func (*Window) GetMinimumSize ¶
func (*Window) GetPixelFormat ¶
func (*Window) GetPosition ¶
func (*Window) GetRenderer ¶
func (*Window) GetSurface ¶
func (*Window) SetBordered ¶
func (*Window) SetBrightness ¶
func (*Window) SetDisplayMode ¶
func (window *Window) SetDisplayMode(mode *DisplayMode) int
func (*Window) SetFullscreen ¶
func (*Window) SetGammaRamp ¶
func (*Window) SetMaximumSize ¶
func (*Window) SetMinimumSize ¶
func (*Window) SetPosition ¶
func (*Window) UpdateSurface ¶
func (*Window) UpdateSurfaceRects ¶
func (*Window) WarpMouseInWindow ¶
type WindowEvent ¶
type WindowEvent struct { CommonEvent WindowID uint32 Event uint8 Data1 int32 Data2 int32 // contains filtered or unexported fields }
type WindowsInfo ¶
Source Files ¶
- audio.go
- blendmode.go
- clipboard.go
- cpuinfo.go
- endian.go
- error.go
- events.go
- filesystem.go
- gamecontroller.go
- gesture.go
- haptic.go
- helpers.go
- hints.go
- joystick.go
- keyboard.go
- keycode.go
- loadso.go
- log.go
- mouse.go
- pixels.go
- power.go
- rect.go
- render.go
- rwops.go
- scancode.go
- sdl.go
- surface.go
- sysrender.go
- syswm.go
- test.go
- timer.go
- touch.go
- version.go
- video.go
- yuv_sw_c.go
Click to show internal directories.
Click to hide internal directories.