// Returns current power supply details func GetPowerInfo() int { return int(C.SDL_GetPowerInfo(nil, nil)) }
func GetPowerInfo() (int, int, int) { _secs := C.int(0) _percent := C.int(0) _state := C.SDL_GetPowerInfo(&_secs, &_percent) return (int)(_state), (int)(_secs), (int)(_percent) }