示例#1
0
文件: joystick.go 项目: beoran/algo
// 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)))
}