Exemple #1
0
// Returns the name of the axis for the stick on the joystick self.
func (self *Joystick) GetAxisName(stick, axis int) string {
	return gostr(C.al_get_joystick_axis_name(self.handle, C.int(stick), C.int(axis)))
}
Exemple #2
0
func (j *Joystick) GetAxisName(stick, axis int32) string {
	return C.GoString(C.al_get_joystick_axis_name((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j)), C.int(stick), C.int(axis)))
}