예제 #1
0
파일: joystick.go 프로젝트: beoran/algo
// 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)))
}
예제 #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)))
}