Пример #1
0
// Returns the name of the stick on the joystick self.
func (self *Joystick) GetStickName(stick int) string {
	return gostr(C.al_get_joystick_stick_name(self.handle, C.int(stick)))
}
Пример #2
0
func (j *Joystick) GetStickName(stick int32) string {
	return C.GoString(C.al_get_joystick_stick_name((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j)), C.int(stick)))
}