Example #1
0
// Returns the name of the button on the joystick self.
func (self *Joystick) GetButtonName(button int) string {
	return gostr(C.al_get_joystick_button_name(self.handle, C.int(button)))
}
Example #2
0
func (j *Joystick) GetButtonName(button int32) string {
	return C.GoString(C.al_get_joystick_button_name((*C.ALLEGRO_JOYSTICK)(unsafe.Pointer(j)), C.int(button)))
}