Пример #1
0
// Returns current power supply details
func GetPowerInfo() int {
	return int(C.SDL_GetPowerInfo(nil, nil))
}
Пример #2
0
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)
}